mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 00:24:13 +00:00
Account for comma-separated tox env list
This commit is contained in:
parent
4e0863436f
commit
a47877891b
@ -28,8 +28,9 @@ sudo TAHOE_LAFS_TRIAL_ARGS="--reporter=subunit" \
|
||||
from json import load
|
||||
from sys import stdin, stdout, argv
|
||||
result = load(stdin)
|
||||
messy_output = result["testenvs"][argv[1]]["test"][-1]["output"]
|
||||
stdout.write(messy_output.split("\n", 3)[3].strip() + "\n")
|
||||
for environ in argv[1].split(","):
|
||||
messy_output = result["testenvs"][environ]["test"][-1]["output"]
|
||||
stdout.write(messy_output.split("\n", 3)[3].strip() + "\n")
|
||||
' "${TAHOE_LAFS_TOX_ENVIRONMENT}" < /tmp/tox-result.json > /tmp/results.subunit1
|
||||
|
||||
# Upgrade subunit version because subunit2junitxml only works on subunit2
|
||||
|
Loading…
x
Reference in New Issue
Block a user