From 1992604c52874075e7cdab9dcd43e430eebaf956 Mon Sep 17 00:00:00 2001 From: dalyd Date: Tue, 3 Nov 2015 11:13:00 -0500 Subject: SERVER-21208: 'server up' check in perf.yml is in the wrong place (cherry picked from commit e29401fe31d95322d7b2ab58dfc94ce04f27d5a1) --- etc/perf.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/perf.yml b/etc/perf.yml index 614021db117..0b2d3b3696d 100644 --- a/etc/perf.yml +++ b/etc/perf.yml @@ -51,6 +51,12 @@ functions: set -o verbose mkdir -p ./dbdata ${mongod_exec_wrapper} ./mongod --dbpath ./dbdata ${mongod_flags} + - command : shell.exec + params: + working_dir: src + script: | + set -e + set -o verbose sleep 5 # if we started a replset, initiate it and wait for it to become primary ./mongo --eval "if(db.isMaster().isreplicaset){rs.initiate(); assert.soon(function(){return db.isMaster().ismaster}, 'no primary')}" -- cgit v1.2.1