|
@@ -259,9 +259,6 @@ def do_run_test(self, test: str, mp: bool) -> TestResult:
|
|
|
"""
|
|
|
|
|
|
f_test = Path(test)
|
|
|
- f_bad = Path(f_test.name + '.out.bad')
|
|
|
- f_notrun = Path(f_test.name + '.notrun')
|
|
|
- f_casenotrun = Path(f_test.name + '.casenotrun')
|
|
|
f_reference = Path(self.find_reference(test))
|
|
|
|
|
|
if not f_test.exists():
|
|
@@ -276,9 +273,6 @@ def do_run_test(self, test: str, mp: bool) -> TestResult:
|
|
|
description='No qualified output '
|
|
|
f'(expected {f_reference})')
|
|
|
|
|
|
- for p in (f_bad, f_notrun, f_casenotrun):
|
|
|
- silent_unlink(p)
|
|
|
-
|
|
|
args = [str(f_test.resolve())]
|
|
|
env = self.env.prepare_subprocess(args)
|
|
|
if mp:
|
|
@@ -288,6 +282,14 @@ def do_run_test(self, test: str, mp: bool) -> TestResult:
|
|
|
env[d] = os.path.join(env[d], f_test.name)
|
|
|
Path(env[d]).mkdir(parents=True, exist_ok=True)
|
|
|
|
|
|
+ test_dir = env['TEST_DIR']
|
|
|
+ f_bad = Path(test_dir, f_test.name + '.out.bad')
|
|
|
+ f_notrun = Path(test_dir, f_test.name + '.notrun')
|
|
|
+ f_casenotrun = Path(test_dir, f_test.name + '.casenotrun')
|
|
|
+
|
|
|
+ for p in (f_notrun, f_casenotrun):
|
|
|
+ silent_unlink(p)
|
|
|
+
|
|
|
t0 = time.time()
|
|
|
with f_bad.open('w', encoding="utf-8") as f:
|
|
|
with subprocess.Popen(args, cwd=str(f_test.parent), env=env,
|