From df57e7ac05e218a910ce56a1a2bff16ccdaaba20 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 17 Apr 2024 15:06:37 +0200 Subject: ["CC/test", "test"] runner: set TMPDIR ... to the same value as TEST_TMPDIR. While TEST_TMPDIR is the conventional name that tests should use for their temporary file, setting TMPDIR as well has the advantage that more library functions can be used to create temporary files and directories, as quite a few of them inspect the variable TMPDIR. While there, also fix some typos in the documentation strings. --- CC/test/runner | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CC/test/runner') diff --git a/CC/test/runner b/CC/test/runner index fc1f04c..45a1bee 100755 --- a/CC/test/runner +++ b/CC/test/runner @@ -46,7 +46,7 @@ os.makedirs(TEMP_DIR, exist_ok=True) WORK_DIR = os.path.realpath("work") os.makedirs(WORK_DIR, exist_ok=True) -ENV = dict(os.environ, TEST_TMPDIR=TEMP_DIR) +ENV = dict(os.environ, TEST_TMPDIR=TEMP_DIR, TMPDIR=TEMP_DIR) with open('test-launcher.json') as f: test_launcher = json.load(f) -- cgit v1.2.3