]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/test_cephadm: Also test stdin
authorSebastian Wagner <sewagner@redhat.com>
Tue, 11 May 2021 10:13:27 +0000 (12:13 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 10 Aug 2021 14:32:11 +0000 (16:32 +0200)
Just to be sure

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit 95c2d2c6fa9bb74efcfa168316bc91a38226275c)

qa/workunits/cephadm/test_cephadm.sh

index 2bc94b88c5a7e2da2f463ea9fdc03d6019eb503b..10ccd245810890f5aef6951f4177eba75625c105 100755 (executable)
@@ -161,6 +161,9 @@ systemctl status docker > /dev/null && ( $CEPHADM --docker version | grep 'ceph
 $CEPHADM shell --fsid $FSID -- ceph -v | grep 'ceph version'
 $CEPHADM shell --fsid $FSID -e FOO=BAR -- printenv | grep FOO=BAR
 
+# test stdin
+echo foo | $CEPHADM shell -- cat | grep -q foo
+
 ## bootstrap
 ORIG_CONFIG=`mktemp -p $TMPDIR`
 CONFIG=`mktemp -p $TMPDIR`