mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
testutils: only rewrap args files
test-wrap-argv.pl does not know how to rewrap other files.
This commit is contained in:
parent
bd6708a862
commit
cc04181a7c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user