ceph/qa
Kefu Chai 5e16f2379d test: cephtool/test.sh: fix expect_false with pipe
this fixes failures like,

/home/jenkins-build/build/workspace/ceph-pull-requests/qa/workunits/cephtool/test.sh:
line 32: ceph osd blacklist ls | grep 192.168.0.1: command not found

where the failure is not the "failure" we are expecting.

in our tests, following command

expect_false "ceph osd blacklist ls | grep 192.168.0.1"

is designed to to verify that "ceph osd blacklist ls | grep 192.168.0.1"
fails with non-zero return code. but expect_false() evaluates the command
line using plain "$@", which will send the arguments direct to the shell,
and $0 is "ceph auth get client.xx | grep caps | grep mon", which does
not exist and is not built-in command. so we need to check the grep
command instead.

for multiple piped command line, use

expect_false sh <<< "echo foo  | grep bar | grep baz"

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-05 15:26:43 +08:00
..
btrfs qa/btrfs/test_rmdir_async_snap 2012-02-20 10:56:42 -08:00
client qa/client/gen-1774.sh 2012-01-12 12:59:07 -08:00
fs qa/fs/.gitignore 2013-07-26 21:06:14 -07:00
libceph trivial_libceph: need O_RDWR 2012-02-07 21:56:51 -08:00
mds qa: add a slightly more stressful anchortable test 2012-01-04 17:11:36 -08:00
mon/bootstrap qa: fix mon single_host_multi.sh test 2012-05-21 13:15:23 -07:00
qa_scripts Add date to README 2016-05-18 11:27:10 -07:00
rbd doc: more c* -> ceph-* renames 2011-09-22 16:18:37 -07:00
workunits test: cephtool/test.sh: fix expect_false with pipe 2016-07-05 15:26:43 +08:00
loopall.sh
Makefile qa: move fs test binary into workunits dir so teuthology can build it 2013-07-05 11:16:08 -07:00
run_xfstests_krbd.sh qa/krbd: Expunge generic/247 2015-12-07 09:24:33 -08:00
run_xfstests_qemu.sh qa: https://ceph.com/git -> https://git.ceph.com 2015-09-24 18:36:57 -04:00
run_xfstests-obsolete.sh use git://git.ceph.com 2015-04-16 08:29:41 -07:00
run_xfstests.sh qa: https://ceph.com/git -> https://git.ceph.com 2015-09-24 18:36:57 -04:00
runallonce.sh
runoncfuse.sh c* -> ceph-* 2011-09-22 15:08:25 -07:00
runonkclient.sh
setup-chroot.sh