mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00: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:
parent
212564a0d1
commit
5e045eca90
@ -39,8 +39,8 @@ if (@ARGV[0] eq "--in-place") {
|
|||||||
shift @ARGV;
|
shift @ARGV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ret = 0;
|
||||||
foreach my $file (@ARGV) {
|
foreach my $file (@ARGV) {
|
||||||
$ret = 0;
|
|
||||||
if (&rewrap($file) < 0) {
|
if (&rewrap($file) < 0) {
|
||||||
$ret = 1;
|
$ret = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user