diff --git a/run_tests.py b/run_tests.py index e6429861..85190e22 100755 --- a/run_tests.py +++ b/run_tests.py @@ -295,6 +295,8 @@ def run_tasks_from_queue(queue, queue_ret, queue_skip, total_tests_arg, max_test if is_windows: tmpdir = "tmp%d" % os.getpid() + while os.access(tmpdir, os.F_OK): + tmpdir = "%sx" % tmpdir os.mkdir(tmpdir) os.chdir(tmpdir) else: