From: Michael Richardson Date: Sat, 25 Jan 2020 19:45:51 +0000 (-0500) Subject: attempt to die nicely of YAML is not loadable X-Git-Tag: tcpdump-4.99-bp~580 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/5ea1e10ab7b29739215c9b52c37e10f4fd7d9151 attempt to die nicely of YAML is not loadable --- 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.