summaryrefslogtreecommitdiff
path: root/selftest/wscript
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-10-27 23:24:28 +0100
committerMichael Adam <obnox@samba.org>2014-10-30 22:45:44 +0100
commitf184d12e5e8f040ca779f36cfff5ea29c9e0de24 (patch)
tree849962100b051e5a1c656451d5488d5a6c37a2b4 /selftest/wscript
parent062289f0f896af85671adad09a9a2afc027be570 (diff)
downloadsamba-f184d12e5e8f040ca779f36cfff5ea29c9e0de24.tar.gz
build: fix check for subunit file when selftest prefix is given
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Oct 30 22:45:45 CET 2014 on sn-devel-104
Diffstat (limited to 'selftest/wscript')
-rw-r--r--selftest/wscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/selftest/wscript b/selftest/wscript
index 3e6dffcc35c..fd925311a2a 100644
--- a/selftest/wscript
+++ b/selftest/wscript
@@ -238,10 +238,11 @@ def cmd_testonly(opt):
runcmd = EXPAND_VARIABLES(opt, testrcmd)
RUN_COMMAND(runcmd, env=env)
- if os.path.exists("st/subunit"):
+ subunit_file = "%s/subunit" % env.SELFTEST_PREFIX
+ if os.path.exists(subunit_file):
nb = Options.options.NB_SLOWEST
print "TOP %d slowest tests" % nb
- cmd = "./script/show_testsuite_time %s/subunit %d" % (Options.options.SELFTEST_PREFIX, nb)
+ cmd = "./script/show_testsuite_time %s %d" % (subunit_file, nb)
runcmd = EXPAND_VARIABLES(opt, cmd)
RUN_COMMAND(runcmd, env=env)