Add a short delay for one test
Fix test that had unreliable log output
Fixes: http://tracker.ceph.com/issues/20770
Signed-off-by: David Zafman <dzafman@redhat.com>
--mkfs \
--mon-data=$data \
--run-dir=$dir || return 1
+ sleep 1
expect_failure $dir "ignore empty --pid-file" ceph-mon \
-f \
--log-to-stderr \
run_mon $dir a 2>&1 | grep "failed to lock pidfile" || return 1
run_osd $dir 0 || return 1
- run_osd $dir 0 2>&1 | grep "failed to lock pidfile" || return 1
+ activate_osd $dir 0 --log-to-stderr -f 2>&1 | grep "failed to lock pidfile" || return 1
# when a daemon shutdown, it will not unlink a path different from
# the one it owns