[libcxx-commits] [libcxx] ec442f0 - [libc++] run.py: Create directory hierarchy if it does not exist

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 14 13:21:11 PDT 2020


Author: Louis Dionne
Date: 2020-04-14T16:20:58-04:00
New Revision: ec442f09968f7597710b29fac6613843ca7f4961

URL: https://github.com/llvm/llvm-project/commit/ec442f09968f7597710b29fac6613843ca7f4961
DIFF: https://github.com/llvm/llvm-project/commit/ec442f09968f7597710b29fac6613843ca7f4961.diff

LOG: [libc++] run.py: Create directory hierarchy if it does not exist

This is useful when replaying tests after the fact and the directories
don't exist anymore.

Added: 
    

Modified: 
    libcxx/utils/run.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/run.py b/libcxx/utils/run.py
index 8c3eaeb227ce..7cdf65264ec0 100644
--- a/libcxx/utils/run.py
+++ b/libcxx/utils/run.py
@@ -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:


        


More information about the libcxx-commits mailing list