summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'source4/selftest')
-rw-r--r--source4/selftest/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript
index 4606c6681a..561baeb6e1 100644
--- a/source4/selftest/wscript
+++ b/source4/selftest/wscript
@@ -90,6 +90,9 @@ def cmd_testonly(opt):
env.FORMAT_TEST_OUTPUT = '${SUBUNIT_FORMATTER}'
+ # clean any previous temporary files
+ os.system("rm -rf %s/tmp" % env.SELFTEST_PREFIX);
+
# put all command line options in the environment as TESTENV_*=*
for o in dir(Options.options):
if o[0:1] != '_':
@@ -128,6 +131,7 @@ def cmd_testonly(opt):
if Options.options.SCREEN:
server_wrapper = '../selftest/in_screen %s' % server_wrapper
+ os.environ['TERMINAL'] = '../selftest/in_screen'
elif server_wrapper != '':
server_wrapper = 'xterm -n server -l -e %s' % server_wrapper