From: Ján Tomko Date: Tue, 26 Jul 2016 11:33:36 +0000 (+0200) Subject: tests: fix the return value of test-wrap-argv X-Git-Tag: v2.2.0-rc1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e045eca90372ab4b2101acb6e28d7bc88dfcb71;p=thirdparty%2Flibvirt.git tests: fix the return value of test-wrap-argv The script was returning success unless it failed on the last file. This went unnoticed because sc_prohibit_long_lines forbids lines longer than 90 characters in .arg[sv] files. --- diff --git a/tests/test-wrap-argv.pl b/tests/test-wrap-argv.pl index 289815680d..f0d3c0ba2d 100755 --- a/tests/test-wrap-argv.pl +++ b/tests/test-wrap-argv.pl @@ -39,8 +39,8 @@ if (@ARGV[0] eq "--in-place") { shift @ARGV; } +$ret = 0; foreach my $file (@ARGV) { - $ret = 0; if (&rewrap($file) < 0) { $ret = 1; }