[PATCH 3/7] tests: fix the return value of test-wrap-argv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
---
 tests/test-wrap-argv.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-wrap-argv.pl b/tests/test-wrap-argv.pl
index 2898156..f0d3c0b 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;
     }
-- 
2.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]