summaryrefslogtreecommitdiff
path: root/cpp/allTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/allTests.py')
-rwxr-xr-xcpp/allTests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/allTests.py b/cpp/allTests.py
index df3b10e284f..98748034cd6 100755
--- a/cpp/allTests.py
+++ b/cpp/allTests.py
@@ -11,8 +11,8 @@
import os
-for toplevel in ["", "..", os.path.join("..", ".."), os.path.join("..", "..", "..")]:
- if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
+for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ if os.path.exists(os.path.normpath(toplevel + "/config/TestUtil.py")):
break
else:
raise "can't find toplevel directory!"