From: stevenknight Date: Sun, 6 Jul 2003 05:48:06 +0000 (+0000) Subject: Fix runtest.py if Aegis is installed but it's not being run inside an active change. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ada9e8ad1bdf67b56031535c984c2c83ca90c6db;p=scons.git Fix runtest.py if Aegis is installed but it's not being run inside an active change. git-svn-id: http://scons.tigris.org/svn/scons/trunk@734 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/runtest.py b/runtest.py index 2fbc9f49..65089994 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