summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autowaf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autowaf.py b/autowaf.py
index 0b52b6d..95caed4 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -397,7 +397,7 @@ def run_tests(ctx, appname, tests):
failures = 0
base = '..'
- top_level = os.path.abspath(ctx.curdir) != os.path.abspath(os.curdir)
+ top_level = (len(ctx.stack_path) > 1)
if top_level:
os.chdir('./build/' + appname)
base = '../..'