diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-09 10:22:48 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-09 00:05:22 +0000 |
commit | d1d585e208bf60729e0c064be7f419ead02875b8 (patch) | |
tree | dd4dfa71113208cf9c306981c2e0070ac14b0d2b /source4/selftest | |
parent | 9c7228d6aa5e63d4d14cce84349edef04f61bf68 (diff) | |
download | samba-d1d585e208bf60729e0c064be7f419ead02875b8.tar.gz samba-d1d585e208bf60729e0c064be7f419ead02875b8.tar.bz2 samba-d1d585e208bf60729e0c064be7f419ead02875b8.zip |
s4-test: make sure the selftest prefix exists
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 9 00:05:22 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/selftest')
-rw-r--r-- | source4/selftest/wscript | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/selftest/wscript b/source4/selftest/wscript index 19f7a0bb93..a5fafa3d6a 100644 --- a/source4/selftest/wscript +++ b/source4/selftest/wscript @@ -154,6 +154,9 @@ def cmd_testonly(opt): if os.path.exists(st_done): os.unlink(st_done) + if not os.path.isdir(env.SELFTEST_PREFIX): + os.makedirs(env.SELFTEST_PREFIX, int('755', 8)) + # We use the full path rather than relative path because it cause problems on some plateforms (ie. solaris 8). cmd = '(${PERL} %s/../selftest/selftest.pl --prefix=${SELFTEST_PREFIX} --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="${PYTHON} ./selftest/tests.py|" ${OPTIONS} --socket-wrapper ${TESTS} && touch ${SELFTEST_PREFIX}/st_done) | ${FILTER_OPTIONS} | tee ${SELFTEST_PREFIX}/subunit' % (os.getcwd()) if os.environ.get('RUN_FROM_BUILD_FARM') is None and not Options.options.FILTERED_SUBUNIT: |