summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/condvar/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceUtil/condvar/run.py')
-rwxr-xr-xcpp/test/IceUtil/condvar/run.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/test/IceUtil/condvar/run.py b/cpp/test/IceUtil/condvar/run.py
index 607cba5eaa2..1fe4b55c25c 100755
--- a/cpp/test/IceUtil/condvar/run.py
+++ b/cpp/test/IceUtil/condvar/run.py
@@ -10,7 +10,7 @@
import os, sys
-for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+for toplevel in [".", "..", "../..", "../../..", "../../../..", "../../../../.."]:
toplevel = os.path.normpath(toplevel)
if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
break
@@ -20,8 +20,7 @@ else:
sys.path.append(os.path.join(toplevel, "config"))
import TestUtil
-name = os.path.join("IceUtil", "condvar")
-testdir = os.path.join(toplevel, "test", name)
+testdir = os.path.dirname(os.path.abspath(__file__))
workqueue = os.path.join(testdir, "workqueue")