summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-07-06 05:48:06 (GMT)
committerSteven Knight <knight@baldmt.com>2003-07-06 05:48:06 (GMT)
commitc5831b0eff51205a9a22b8a016f4ff0d03c7fa4e (patch)
treee3432015f0d1763bcd20f9c4fd1401e186b66730 /runtest.py
parent06cceae874f05d38bb657924d5f745a218e97d12 (diff)
downloadSCons-c5831b0eff51205a9a22b8a016f4ff0d03c7fa4e.zip
SCons-c5831b0eff51205a9a22b8a016f4ff0d03c7fa4e.tar.gz
SCons-c5831b0eff51205a9a22b8a016f4ff0d03c7fa4e.tar.bz2
Fix runtest.py if Aegis is installed but it's not being run inside an active change.
Diffstat (limited to 'runtest.py')
-rw-r--r--runtest.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtest.py b/runtest.py
index 2fbc9f4..6508999 100644
--- a/runtest.py
+++ b/runtest.py
@@ -157,15 +157,18 @@ def whereis(file):
aegis = whereis('aegis')
+sp = []
+
if aegis:
- sp = os.popen("aesub '$sp' 2>/dev/null", "r").read()[:-1]
- sp = string.split(sp, os.pathsep)
+ paths = os.popen("aesub '$sp' 2>/dev/null", "r").read()[:-1]
+ sp.extend(string.split(paths, os.pathsep))
spe = os.popen("aesub '$spe' 2>/dev/null", "r").read()[:-1]
spe = string.split(spe, os.pathsep)
else:
- sp = [cwd]
spe = []
+sp.append(cwd)
+
class Test:
def __init__(self, path, spe=None):
self.path = path