summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_libs
diff options
context:
space:
mode:
authorKamran Khan <kamran.khan@mongodb.com>2015-07-21 12:48:02 -0400
committerKamran Khan <kamran.khan@mongodb.com>2015-07-21 12:53:19 -0400
commitbf288d1e4e02677de70571bd1cf289c22ff59088 (patch)
tree2be5448146423f4d481ee111e1108e239a18ad73 /jstests/concurrency/fsm_libs
parenta5d440119a5746936e3e426a1c89dacda972408a (diff)
downloadmongo-bf288d1e4e02677de70571bd1cf289c22ff59088.tar.gz
SERVER-19499 Print out FSM workload schedules in the concurrency suite
This output can be used to run previous schedules when debugging test failures.
Diffstat (limited to 'jstests/concurrency/fsm_libs')
-rw-r--r--jstests/concurrency/fsm_libs/runner.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/jstests/concurrency/fsm_libs/runner.js b/jstests/concurrency/fsm_libs/runner.js
index 737b02ea3ed..716b9aeb786 100644
--- a/jstests/concurrency/fsm_libs/runner.js
+++ b/jstests/concurrency/fsm_libs/runner.js
@@ -348,6 +348,17 @@ var runner = (function() {
try {
var schedule = scheduleWorkloads(workloads, executionMode, executionOptions);
+
+ // Print out the entire schedule of workloads to make it easier to run the same
+ // schedule when debugging test failures.
+ jsTest.log('The entire schedule of FSM workloads:');
+
+ // Note: We use printjsononeline (instead of just plain printjson) to make it
+ // easier to reuse the output in variable assignments.
+ printjsononeline(schedule);
+
+ jsTest.log('End of schedule');
+
schedule.forEach(function(workloads) {
var cleanup = [];
var errors = [];