diff options
-rw-r--r-- | debug/testlib.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 38ae33b..0fe0322 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -594,8 +594,12 @@ class PrivateState(object): self.gdb.pop_state() def run_all_tests(module, target, parsed): - if not os.path.exists(parsed.logs): + try: os.makedirs(parsed.logs) + except OSError: + # There's a race where multiple instances of the test program might + # decide to create the logs directory at the same time. + pass overall_start = time.time() |