]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/standalone/test_ceph_daemon.sh: sudo for untar
authorSage Weil <sage@redhat.com>
Wed, 20 Nov 2019 18:40:45 +0000 (12:40 -0600)
committerSage Weil <sage@redhat.com>
Thu, 21 Nov 2019 00:27:31 +0000 (18:27 -0600)
The deepsea.tgz tar contains actual device nodes for the OSD block devices
(not symlinks or files).  Must be root to untar.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/test_ceph_daemon.sh

index b3b480258f864e38a45be59d26d10d4162097507..584e34c680551267985483c8c49eef18e8b066e0 100755 (executable)
@@ -188,7 +188,7 @@ done
 ## adopt
 for tarball in $TEST_TARS; do
     TMP_TAR_DIR=`mktemp -d -p $TMPDIR`
-    tar xzvf $tarball -C $TMP_TAR_DIR
+    $SUDO tar xzvf $tarball -C $TMP_TAR_DIR
     NAMES=$($SUDO $CEPH_DAEMON ls --legacy-dir $TMP_TAR_DIR | jq -r '.[].name')
     for name in $NAMES; do
         # TODO: skip osd test for now
@@ -207,7 +207,7 @@ for tarball in $TEST_TARS; do
     done
     # clean-up before next iter
     $SUDO $CEPH_DAEMON rm-cluster --fsid $FSID_LEGACY --force
-    rm -rf $TMP_TAR_DIR
+    $SUDO rm -rf $TMP_TAR_DIR
 done
 
 ## unit