ceph/qa/workunits
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
..
caps
ceph-disk Fix typos, change prefered to preferred 2016-04-22 15:18:44 +08:00
ceph-tests Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com> 2016-04-22 18:25:46 -04:00
cephtool test: cephtool/test.sh: fix expect_false with pipe 2016-07-05 15:26:43 +08:00
cls
direct_io
erasure-code test: added env var setting to make check scripts 2016-05-02 10:19:31 -04:00
fs qa/workunits/fs/misc: test for setting empty ACL 2016-06-01 17:42:24 +08:00
hadoop
libcephfs
libcephfs-java
mon qa/workunits: rados cppool now requires --yes-i-really-really-mean-it 2016-06-15 09:05:05 -04:00
objectstore
osdc test: split objectcacher test into 'stress' and 'correctness' 2016-06-23 14:24:06 -07:00
rados qa/workunits/rados/loadgen-mostly-read.sh: half as much data (512mb) 2016-06-02 09:52:00 -04:00
rbd Merge pull request #10076 from dillaman/wip-rbd-mirror-cmake 2016-07-05 08:28:43 +03:00
rename
rest Merge remote-tracking branch 'github/wip-fs-lockouts' into greg-fs-testing 2016-04-07 17:07:16 -07:00
restart
rgw
suites
ceph-helpers-root.sh
ceph-helpers.sh Merge pull request #8786 from tchaikov/wip-btrfs-sudo 2016-05-09 22:38:07 +08:00
false.sh
kernel_untar_build.sh
Makefile
post-file.sh
true.sh