summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Richardson <mcr@sandelman.ca>2020-01-25 14:45:51 -0500
committerMichael Richardson <mcr@sandelman.ca>2020-01-25 14:45:51 -0500
commit5ea1e10ab7b29739215c9b52c37e10f4fd7d9151 (patch)
tree08dcf5903962ddec8534906f6616d6e07460abaa /tests
parent232bb9f0185f8a342691344753b31d3822773d1f (diff)
downloadtcpdump-5ea1e10ab7b29739215c9b52c37e10f4fd7d9151.tar.gz
attempt to die nicely of YAML is not loadable
Diffstat (limited to 'tests')
-rwxr-xr-xtests/TESTrun3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/TESTrun b/tests/TESTrun
index 44f0edb3..9b462ca6 100755
--- a/tests/TESTrun
+++ b/tests/TESTrun
@@ -6,7 +6,8 @@ use File::Basename;
use POSIX qw( WEXITSTATUS WIFEXITED);
use Cwd qw(abs_path getcwd);
use File::Path qw(make_path remove_tree);
-use YAML qw(LoadFile);
+
+eval 'use YAML qw(LoadFile); 1' || die "TESTrun needs YAML.pm. apt install libyaml-perl/yum install per-YAML/cpanm YAML";
# these are created in the directory where we are run, which might be
# a build directory.