admin_daemon() no longer populates stdout and stderr, all output is
redirected inside of run_cmd_internal().
This unbreaks "TEST: release leader and wait it is reacquired".
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
test -n "${pool}" || pool=${POOL}
admin_daemon "${CLUSTER1}:${instance}" \
- rbd mirror status ${pool} ${CLUSTER2}${PEER_CLUSTER_SUFFIX} |
- grep '"leader": true'
+ rbd mirror status ${pool} ${CLUSTER2}${PEER_CLUSTER_SUFFIX}
+ grep '"leader": true' < "${CMD_STDOUT}"
}
wait_for_leader()