summaryrefslogtreecommitdiff
path: root/lib/tdb/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb/wscript')
-rw-r--r--lib/tdb/wscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index 414943a761f..073c53e42d4 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -211,7 +211,7 @@ def testonly(ctx):
# Symlink back to source dir so it can find tests in test/
link = os.path.join(testdir, 'test')
if not os.path.exists(link):
- os.symlink(os.path.abspath(os.path.join(env.cwd, 'test')), link)
+ os.symlink(ctx.path.make_node('test').abspath(), link)
sh_tests = ["test/test_tdbbackup.sh test/jenkins-be-hash.tdb"]
@@ -249,9 +249,9 @@ def testonly(ctx):
# WAF doesn't build the unit tests for this, maybe because they don't link with tdb?
# This forces it
def test(ctx):
- import Scripting
- Scripting.commands.append('build')
- Scripting.commands.append('testonly')
+ import Options
+ Options.commands.append('build')
+ Options.commands.append('testonly')
def dist():
'''makes a tarball for distribution'''