summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-07-26 23:28:21 +0100
committerJonathan Lange <jml@canonical.com>2011-07-26 23:28:21 +0100
commit635de7dfc0c3c46a76cf8247b8b6e4d10410cdc7 (patch)
tree52339c7261f6507b6e6d2a20149757817e7d5cdb /scripts
parent2daae2ad24b673e117670b36f8f3aad50e088976 (diff)
downloadtesttools-635de7dfc0c3c46a76cf8247b8b6e4d10410cdc7.tar.gz
Annotations and fixes.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/all-pythons9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/all-pythons b/scripts/all-pythons
index 708623c..aecc949 100755
--- a/scripts/all-pythons
+++ b/scripts/all-pythons
@@ -30,8 +30,11 @@ ROOT = os.path.dirname(os.path.dirname(__file__))
def run_for_python(version, result):
- result.time(now())
+ # XXX: This could probably be broken up and put into subunit.
python = 'python%s' % (version,)
+ # XXX: Correct API, but subunit doesn't support it. :(
+ # result.tags(set(python), set())
+ result.time(now())
test = PlaceHolder(''.join(c for c in python if c != '.'))
process = subprocess.Popen(
'%s -c pass' % (python,), shell=True,
@@ -45,7 +48,7 @@ def run_for_python(version, result):
return
env = os.environ.copy()
- if env['PYTHONPATH']:
+ if env.get('PYTHONPATH', None):
env['PYTHONPATH'] = os.pathsep.join([ROOT, env['PYTHONPATH']])
else:
env['PYTHONPATH'] = ROOT
@@ -71,6 +74,8 @@ def run_for_python(version, result):
})
result.stopTest(test)
result.time(now())
+ # XXX: Correct API, but subunit doesn't support it. :(
+ #result.tags(set(), set(python))
def now():