diff options
author | Steve Dower <steve.dower@microsoft.com> | 2019-01-22 18:49:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 18:49:52 (GMT) |
commit | 28f6cb34f602b9796987904a607dceaf2e4a9e78 (patch) | |
tree | 82f000e6147a550cd4b803c19ffada03c5978a86 /Lib/test/libregrtest | |
parent | bf4ac2d2fd520c61306b2676db488adab9b5d8c5 (diff) | |
download | cpython-28f6cb34f602b9796987904a607dceaf2e4a9e78.zip cpython-28f6cb34f602b9796987904a607dceaf2e4a9e78.tar.gz cpython-28f6cb34f602b9796987904a607dceaf2e4a9e78.tar.bz2 |
bpo-35683: Improve Azure Pipelines steps (GH-11493)
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r-- | Lib/test/libregrtest/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py index 8d44caf..32ac440 100644 --- a/Lib/test/libregrtest/main.py +++ b/Lib/test/libregrtest/main.py @@ -1,5 +1,6 @@ import datetime import faulthandler +import json import locale import os import platform @@ -565,6 +566,9 @@ class Regrtest: if self.ns.tempdir: TEMPDIR = self.ns.tempdir + elif self.ns.worker_args: + ns_dict, _ = json.loads(self.ns.worker_args) + TEMPDIR = ns_dict.get("tempdir") or TEMPDIR os.makedirs(TEMPDIR, exist_ok=True) |