From 0b066b88dfbcc612089cdb5d971b7bb1bb7542ed Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 22 Feb 2011 09:17:05 +1100 Subject: selftest split $PERL into multiple arguments for Test::More check --- selftest/selftesthelpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'selftest') diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py index e274cc4242..781c8ccb9a 100644 --- a/selftest/selftesthelpers.py +++ b/selftest/selftesthelpers.py @@ -34,8 +34,9 @@ def binpath(name): return os.path.join(bindir(), "%s%s" % (name, os.getenv("EXEEXT", ""))) perl = os.getenv("PERL", "perl") +perl = perl.split() -if subprocess.call([perl, "-e", "eval require Test::More;"]) == 0: +if subprocess.call(perl + ["-e", "eval require Test::More;"]) == 0: has_perl_test_more = True else: has_perl_test_more = False @@ -142,7 +143,7 @@ def planperltestsuite(name, path): :param path: Path to the test runner """ if has_perl_test_more: - plantestsuite(name, "none", "%s %s | %s" % (perl, path, tap2subunit)) + plantestsuite(name, "none", "%s %s | %s" % (" ".join(perl), path, tap2subunit)) else: skiptestsuite(name, "Test::More not available") -- cgit