]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Use a file that should be on all OSes 22428/head
authorDavid Zafman <dzafman@redhat.com>
Tue, 5 Jun 2018 18:01:37 +0000 (11:01 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 5 Jun 2018 18:27:12 +0000 (11:27 -0700)
Also, create temporary files in test specific dir and remove

Caused by: 154330fd68d952a4e1b972891f02b6dc9c355424

Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/scrub/osd-unexpected-clone.sh

index b969405f82bbadd35d9ddf662fcc50ee058c06c3..bc9263ae32dff6d71b661cd9f6b452684851ddee 100755 (executable)
@@ -47,7 +47,7 @@ function TEST_recover_unexpected() {
     ceph osd pool create foo 1
     rados -p foo put foo /etc/passwd
     rados -p foo mksnap snap
-    rados -p foo put foo /etc/motd
+    rados -p foo put foo /etc/group
 
     wait_for_clean || return 1
 
@@ -55,16 +55,17 @@ function TEST_recover_unexpected() {
 
     JSON=`objectstore_tool $dir $osd --op list foo | grep snapid.:1`
     echo "JSON is $JSON"
-    rm -f data
-    objectstore_tool $dir $osd "$JSON" get-attr _ > _
-    objectstore_tool $dir $osd "$JSON" get-bytes data
+    rm -f $dir/_ $dir/data
+    objectstore_tool $dir $osd "$JSON" get-attr _ > $dir/_
+    objectstore_tool $dir $osd "$JSON" get-bytes $dir/data
 
     rados -p foo rmsnap snap
 
     sleep 5
 
-    objectstore_tool $dir $osd "$JSON" set-bytes data
-    objectstore_tool $dir $osd "$JSON" set-attr _ _
+    objectstore_tool $dir $osd "$JSON" set-bytes $dir/data
+    objectstore_tool $dir $osd "$JSON" set-attr _ $dir/_
+    rm -f $dir/_ $dir/data
 
     sleep 5