]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test//osd/osd-copy-from.sh: use absolute path for "rados put"
authorKefu Chai <kchai@redhat.com>
Wed, 6 Jul 2016 02:43:55 +0000 (10:43 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 7 Jul 2016 04:11:05 +0000 (12:11 +0800)
"rados -p rbd put foo rados" does not work if "rados" is not in current
path. so change it to "rados -p rbd put foo $(which rados)"

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/osd/osd-copy-from.sh

index 12d2fb48d194c3822981e5bdc71c56394b828105..3f94743ddafcbc628ca27074331323f4d70be53e 100755 (executable)
@@ -45,7 +45,7 @@ function TEST_copy_from() {
     run_osd $dir 1 || return 1
 
     # success
-    rados -p rbd put foo rados
+    rados -p rbd put foo $(which rados)
     rados -p rbd cp foo foo2
     rados -p rbd stat foo2