From ce3a7bc16d4ba8b53587d03ed6e7ac7c173be41b Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Sun, 4 Aug 2013 17:55:41 -0400 Subject: [PATCH] [test suite] have Makefile.am test/conf/ file inclusion only write errors --- test/test-fwknop.pl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index 0ef13580..0c874747 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -1021,10 +1021,7 @@ sub test_suite_conf_files() { next if -d $f; next unless $f =~ /\.conf/ or $f =~ /fwknop/; if ($f =~ m|$conf_dir/(\S+)|) { - if (defined $makefile_conf_files{$1}) { - &write_test_file("[+] test suite conf file $1 is in $make_file.\n", - $curr_test_file); - } else { + unless (defined $makefile_conf_files{$1}) { &write_test_file("[-] test suite conf file $1 not in $make_file.\n", $curr_test_file); $rv = 0; @@ -1034,10 +1031,7 @@ sub test_suite_conf_files() { for my $f (glob("$tests_dir/*.pl")) { if ($f =~ m|$tests_dir/(\S+)|) { - if (defined $makefile_test_scripts{$1}) { - &write_test_file("[+] test suite script file $1 is in $make_file.\n", - $curr_test_file); - } else { + unless (defined $makefile_test_scripts{$1}) { &write_test_file("[-] test suite script file $1 not in $make_file.\n", $curr_test_file); $rv = 0;