[PATCH 3/5] testutils: only rewrap args files

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

 



test-wrap-argv.pl does not know how to rewrap other files.
---
 tests/testutils.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/testutils.c b/tests/testutils.c
index d699e1f..8af8707 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -442,6 +442,10 @@ virTestRewrapFile(const char *filename)
     char *script = NULL;
     virCommandPtr cmd = NULL;
 
+    if (!(virFileHasSuffix(filename, ".args") ||
+          virFileHasSuffix(filename, ".ldargs")))
+        return 0;
+
     if (!perl) {
         fprintf(stderr, "cannot rewrap %s: unable to find perl in path", filename);
         return -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]