From ac0963a0a5fe5b4e1114f0e7d1b011a65b0130ae Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Fri, 31 Jan 2014 20:11:02 +0400 Subject: [PATCH] workaround for not removed tmp folders on Windows --- run_tests.py | 2 ++ 1 file changed, 2 insertions(+) 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: