]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
testutils: only rewrap args files
authorJán Tomko <jtomko@redhat.com>
Mon, 11 Jul 2016 13:30:35 +0000 (15:30 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 12 Jul 2016 10:15:50 +0000 (12:15 +0200)
test-wrap-argv.pl does not know how to rewrap other files.

tests/testutils.c

index d699e1fbfe866cbfcce9151d59eb9a7f3044e538..8af8707fab21e8fde1ae93aabdaac2b3e4ba555d 100644 (file)
@@ -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;