[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.
Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: ec442f09968f7597710b29fac6613843ca7f4961
diff --git a/utils/run.py b/utils/run.py
index 8c3eaeb..7cdf652 100644
--- a/utils/run.py
+++ b/utils/run.py
@@ -45,7 +45,7 @@
# 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: