summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/evergreen
diff options
context:
space:
mode:
authorTammy Bailey <tammy.bailey@mongodb.com>2023-03-07 01:12:52 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-07 02:06:19 +0000
commitad9e29c81dea8b1172e7b4d610d8c4e2231175da (patch)
tree74905ddd2d51fa22c294c0664f184cfd40f7fdde /src/third_party/wiredtiger/test/evergreen
parent607f4f1b1dfbd5e4a290988b0a07dc6942b6f011 (diff)
downloadmongo-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.py10
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],