Fix runtest.py if Aegis is installed but it's not being run inside an active change.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 6 Jul 2003 05:48:06 +0000 (05:48 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 6 Jul 2003 05:48:06 +0000 (05:48 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@734 fdb21ef1-2011-0410-befe-b5e4ea1792b1

runtest.py

index 2fbc9f49d0bf5dac4ccadd45eb24677c74027f19..6508999490db55544a8c3093da4f4762b190aeb3 100644 (file)
@@ -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