From 3f09f48848bc330f24d1cd0753afd47f9013179b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Apr 2019 11:16:43 +0200 Subject: Fix running tests in a recursive project --- wscript | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 2df4eb4..a5ffa3b 100644 --- a/wscript +++ b/wscript @@ -446,9 +446,8 @@ def lint(ctx): def test(tst): with tst.group('Unit') as check: - for i in tst.path.ant_glob('**/*-test'): - test = './' + i.path_from(tst.path.find_node('build')) - check([test]) + for test in tst.path.get_bld().ant_glob('**/*-test'): + check([str(test)]) class Dist(Scripting.Dist): def execute(self): -- cgit v1.2.1