From: Michael Fritch Date: Mon, 22 Nov 2021 19:15:18 +0000 (-0700) Subject: qa/workunits/cephadm/test_cephadm: add `--no-pager` X-Git-Tag: v18.0.0~7^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d95c6c8d77fce2c2c1a5de0ad2fa811e10825e9d;p=ceph.git qa/workunits/cephadm/test_cephadm: add `--no-pager` avoid user interaction with the systemd pager Signed-off-by: Michael Fritch --- diff --git a/qa/workunits/cephadm/test_cephadm.sh b/qa/workunits/cephadm/test_cephadm.sh index aeec802756f9..53357b849e50 100755 --- a/qa/workunits/cephadm/test_cephadm.sh +++ b/qa/workunits/cephadm/test_cephadm.sh @@ -147,7 +147,7 @@ function nfs_stop() # stop the running nfs server local units="nfs-server nfs-kernel-server" for unit in $units; do - if systemctl status $unit < /dev/null; then + if systemctl --no-pager status $unit > /dev/null; then $SUDO systemctl stop $unit fi done