s4-waf: don't assume perl takes -W option
authorAndrew Tridgell <tridge@samba.org>
Mon, 29 Mar 2010 12:46:38 +0000 (23:46 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:17 +0000 (20:27 +1000)
source4/selftest/wscript

index 8324ef5d6dedab960bbf74645867615c7c10c823..3ca03a5513a3b39b2e1420a244e8bb21c9348433 100644 (file)
@@ -42,7 +42,7 @@ def cmd_testonly(opt):
     env = Environment.Environment()
 
     env.TESTS  = Options.options.TESTS
-    env.PERL   = 'perl -W'
+    env.PERL   = 'perl'
     env.PYTHON = 'python'
 
     env.SUBUNIT_FORMATTER = '${PERL} ../selftest/format-subunit --prefix=${SELFTEST_PREFIX} --immediate'
@@ -83,7 +83,7 @@ def cmd_testonly(opt):
     if os.path.exists(st_done):
         os.unlink(st_done)
 
-    cmd = '(perl -W ../selftest/selftest.pl --prefix=${SELFTEST_PREFIX} --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="./selftest/tests.sh|" ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS}'
+    cmd = '(${PERL} ../selftest/selftest.pl --prefix=${SELFTEST_PREFIX} --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="./selftest/tests.sh|" ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS}'
 
     print "test: running %s" % cmd
     ret = RUN_COMMAND(cmd, env=env)