summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/bench/workgen/wtperf.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/bench/workgen/wtperf.py')
-rwxr-xr-xsrc/third_party/wiredtiger/bench/workgen/wtperf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/bench/workgen/wtperf.py b/src/third_party/wiredtiger/bench/workgen/wtperf.py
index 54271650750..e6003a59552 100755
--- a/src/third_party/wiredtiger/bench/workgen/wtperf.py
+++ b/src/third_party/wiredtiger/bench/workgen/wtperf.py
@@ -490,7 +490,8 @@ class Translator:
s += 'pop_workload = Workload(context, populate_threads * pop_thread)\n'
if self.verbose > 0:
s += 'print("populate:")\n'
- s += 'pop_workload.run(conn)\n'
+ s += 'ret = pop_workload.run(conn)\n'
+ s += 'assert ret == 0, ret\n'
return s
@@ -609,7 +610,8 @@ class Translator:
if self.verbose > 0:
s += 'print("workload:")\n'
- s += 'workload.run(conn)\n\n'
+ s += 'ret = workload.run(conn)\n'
+ s += 'assert ret == 0, ret\n'
s += 'latency_filename = context.args.home + "/latency.out"\n'
s += 'latency.workload_latency(workload, latency_filename)\n'