testutils: only rewrap args files

test-wrap-argv.pl does not know how to rewrap other files.
This commit is contained in:
Ján Tomko 2016-07-11 15:30:35 +02:00
parent bd6708a862
commit cc04181a7c

View 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;