]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: move snap-hierarchy out of snaps workunits 21805/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 3 May 2018 22:07:21 +0000 (15:07 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 3 May 2018 23:52:34 +0000 (16:52 -0700)
The snapshot hierarchy it leaves behind can't be cleaned up by `rm -rf` which
breaks workunit cleanup. So, don't run this as part of normal snaps test.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/suites/fs/upgrade/snaps/tasks/1-client.yaml
qa/suites/fs/upgrade/snaps/tasks/5-client-sanity.yaml
qa/workunits/fs/snap-hierarchy.sh [new file with mode: 0755]
qa/workunits/fs/snaps/snap-hierarchy.sh [deleted file]

index e9dea8f4e308f8bbd9fc9ff24defddee9a37d1c8..0aa6dcf7877ad201b4d52a8136e264f447b652ea 100644 (file)
@@ -9,5 +9,5 @@ tasks:
     cleanup: false
     clients:
       client.0:
-      - fs/snaps/snap-hierarchy.sh
+      - fs/snap-hierarchy.sh
 - print: "**** done snap hierarchy"
index f32a89da4521448fb446367d8d2c2b30a5b00539..680e440757a2f4315b19ab4d54f604675e302fd7 100644 (file)
@@ -6,5 +6,5 @@ tasks:
       VERIFY: verify
     clients:
       client.0:
-      - fs/snaps/snap-hierarchy.sh
+      - fs/snap-hierarchy.sh
 - print: "**** done verify snap hierarchy"
diff --git a/qa/workunits/fs/snap-hierarchy.sh b/qa/workunits/fs/snap-hierarchy.sh
new file mode 100755 (executable)
index 0000000..67f0e01
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -ex
+
+if [ -d "$1" ]; then
+  mkdir -p -- "$1" && cd "$1"
+fi
+
+[ "$VERIFY" != verify ] && mkdir 1
+[ "$VERIFY" != verify ] && mkdir 1/.snap/first
+stat 1/.snap/first
+[ "$VERIFY" != verify ] && mkdir 1/2
+stat 1/.snap/first/2 && exit 1
+[ "$VERIFY" != verify ] && mkdir 1/2/.snap/second
+stat 1/2/.snap/second
+[ "$VERIFY" != verify ] && touch 1/foo
+stat 1/.snap/first/foo && exit 1
+[ "$VERIFY" != verify ] && mkdir 1/.snap/third
+stat 1/.snap/third/foo || exit 1
+[ "$VERIFY" != verify ] && mkdir 1/2/3
+[ "$VERIFY" != verify ] && mkdir 1/2/.snap/fourth
+stat 1/2/.snap/fourth/3
+
+exit 0
diff --git a/qa/workunits/fs/snaps/snap-hierarchy.sh b/qa/workunits/fs/snaps/snap-hierarchy.sh
deleted file mode 100755 (executable)
index 67f0e01..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-set -ex
-
-if [ -d "$1" ]; then
-  mkdir -p -- "$1" && cd "$1"
-fi
-
-[ "$VERIFY" != verify ] && mkdir 1
-[ "$VERIFY" != verify ] && mkdir 1/.snap/first
-stat 1/.snap/first
-[ "$VERIFY" != verify ] && mkdir 1/2
-stat 1/.snap/first/2 && exit 1
-[ "$VERIFY" != verify ] && mkdir 1/2/.snap/second
-stat 1/2/.snap/second
-[ "$VERIFY" != verify ] && touch 1/foo
-stat 1/.snap/first/foo && exit 1
-[ "$VERIFY" != verify ] && mkdir 1/.snap/third
-stat 1/.snap/third/foo || exit 1
-[ "$VERIFY" != verify ] && mkdir 1/2/3
-[ "$VERIFY" != verify ] && mkdir 1/2/.snap/fourth
-stat 1/2/.snap/fourth/3
-
-exit 0