commit | 2159420ccfca45fe94e5a87483d2889fe323029d | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Fri Oct 09 12:32:18 2020 -0700 |
committer | George Burgess <gbiv@chromium.org> | Fri Oct 09 20:09:47 2020 +0000 |
tree | 34a2edd4698e0e4ecd996b5a5c84e01af170fe53 | |
parent | fd598ff8539e2d99755c52d15159864686092976 [diff] |
llvm_tools: add exist_ok=True to state dir creation we just want to make sure that the state file directory exists here. BUG=None TEST=Ran Change-Id: I563821a357e2863c0a71570cfcb7319401a03778 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2460837 Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
diff --git a/llvm_tools/upload_lexan_crashes_to_forcey.py b/llvm_tools/upload_lexan_crashes_to_forcey.py index 216511f..b93f51a 100755 --- a/llvm_tools/upload_lexan_crashes_to_forcey.py +++ b/llvm_tools/upload_lexan_crashes_to_forcey.py
@@ -227,7 +227,7 @@ state_file = opts.state_file last_date_str = opts.last_date - os.makedirs(os.path.dirname(state_file), 0o755) + os.makedirs(os.path.dirname(state_file), 0o755, exist_ok=True) if last_date_str is None: with open(state_file, encoding='utf-8') as f: