mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user