From aa79de0b9a1e214e923139c25b02b5313a6305a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Oct 2016 14:55:06 +0200 Subject: Implement creation/cleanup of testscript root working directory --- unit-tests/test/script/parser/driver.cxx | 2 +- unit-tests/test/script/parser/scope.test | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'unit-tests') diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx index 09fd6f5..4fd0489 100644 --- a/unit-tests/test/script/parser/driver.cxx +++ b/unit-tests/test/script/parser/driver.cxx @@ -120,7 +120,7 @@ namespace build2 // Parse and run. // - script s (tt, st); + script s (tt, st, dir_path (work) /= "test-driver"); print_runner r (scope); parser p; diff --git a/unit-tests/test/script/parser/scope.test b/unit-tests/test/script/parser/scope.test index 7749b3d..4e358f3 100644 --- a/unit-tests/test/script/parser/scope.test +++ b/unit-tests/test/script/parser/scope.test @@ -2,12 +2,12 @@ $* testscript <'cmd $@' >"cmd 1" # id-testscript $* foo.test <'cmd $@' >"cmd foo/1" # id wd = [dir_path] $~; -wd += test; +wd += test-driver; wd += 1; $* testscript <'cmd $~' >"cmd $wd" # wd-testscript wd = [dir_path] $~; -wd += test; +wd += test-driver; wd += foo; wd += 1; $* foo.test <'cmd $~' >"cmd $wd" # wd -- cgit v1.1