]> The Tcpdump Group git mirrors - tcpdump/commitdiff
attempt to die nicely of YAML is not loadable
authorMichael Richardson <[email protected]>
Sat, 25 Jan 2020 19:45:51 +0000 (14:45 -0500)
committerMichael Richardson <[email protected]>
Sat, 25 Jan 2020 19:45:51 +0000 (14:45 -0500)
tests/TESTrun

index 44f0edb3ab87bc1fd41b105311d288148af0000b..9b462ca6d1c758cbefe7f9bfb2446d9a480492fc 100755 (executable)
@@ -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.