[libc++] run.py: Create directory hierarchy if it does not exist
authorLouis Dionne <ldionne@apple.com>
Tue, 14 Apr 2020 20:20:00 +0000 (16:20 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 14 Apr 2020 20:20:58 +0000 (16:20 -0400)
This is useful when replaying tests after the fact and the directories
don't exist anymore.

libcxx/utils/run.py

index 8c3eaeb..7cdf652 100644 (file)
@@ -45,7 +45,7 @@ def main():
 
     # Create the execution directory, and make sure we remove it at the end.
     try:
-        os.mkdir(args.execdir)
+        os.makedirs(args.execdir)
 
         # Ensure the file dependencies exist and copy them to the execution directory.
         for dep in args.dependencies: