diff options
author | Tammy Bailey <tammy.bailey@mongodb.com> | 2023-03-07 01:12:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-07 02:06:19 +0000 |
commit | ad9e29c81dea8b1172e7b4d610d8c4e2231175da (patch) | |
tree | 74905ddd2d51fa22c294c0664f184cfd40f7fdde /src/third_party/wiredtiger/test/evergreen | |
parent | 607f4f1b1dfbd5e4a290988b0a07dc6942b6f011 (diff) | |
download | mongo-ad9e29c81dea8b1172e7b4d610d8c4e2231175da.tar.gz |
Import wiredtiger: 2163f96ebf37a28f0166d42bc62d28859b765ab1 from branch mongodb-master
ref: b4416f0afd..2163f96ebf
for: 7.0.0-rc0
WT-10699 Handle OSError exception in print_stack_trace.py
Diffstat (limited to 'src/third_party/wiredtiger/test/evergreen')
-rw-r--r-- | src/third_party/wiredtiger/test/evergreen/print_stack_trace.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/test/evergreen/print_stack_trace.py b/src/third_party/wiredtiger/test/evergreen/print_stack_trace.py index df4bc9af626..9de0a0c4aca 100644 --- a/src/third_party/wiredtiger/test/evergreen/print_stack_trace.py +++ b/src/third_party/wiredtiger/test/evergreen/print_stack_trace.py @@ -66,7 +66,10 @@ class LLDBDumper: output = None if (output_file): - output = open(output_file, "w") + try: + output = open(output_file, "w") + except OSError as e : + raise e subprocess.run([self.dbg, "--batch"] + [exe_path, "-c", core_path] + list(itertools.chain.from_iterable([['-o', b] for b in cmds])), check=True, stdout=output) @@ -100,7 +103,10 @@ class GDBDumper: output = None if (output_file): - output = open(output_file, "w") + try: + output = open(output_file, "w") + except OSError as e : + raise e subprocess.run([self.dbg, "--batch", "--quiet"] + list(itertools.chain.from_iterable([['-ex', b] for b in cmds])) + [exe_path, core_path], |