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

Ján Tomko jtomko at redhat.com
Mon Jul 11 14:40:26 UTC 2016


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




More information about the libvir-list mailing list