]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add test_python for cephfs
authorJohn Spray <john.spray@redhat.com>
Wed, 2 Mar 2016 14:21:01 +0000 (14:21 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 14 Mar 2016 12:32:56 +0000 (12:32 +0000)
Borrowed this from rados/test_python.  It's for
invoking the test that lives in src/test/pybind/test_cephfs.py

Signed-off-by: John Spray <john.spray@redhat.com>
qa/workunits/fs/test_python.sh [new file with mode: 0755]

diff --git a/qa/workunits/fs/test_python.sh b/qa/workunits/fs/test_python.sh
new file mode 100755 (executable)
index 0000000..ea0af66
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh -ex
+
+CEPH_REF=${CEPH_REF:-master}
+wget -O test_cephfs.py "https://git.ceph.com/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/pybind/test_cephfs.py" || \
+    wget -O test_cephfs.py "https://git.ceph.com/?p=ceph.git;a=blob_plain;hb=ref/heads/$CEPH_REF;f=src/test/pybind/test_cephfs.py"
+
+# Running as root because the filesystem root directory will be
+# owned by uid 0, and that's where we're writing.
+sudo nosetests -v test_cephfs
+exit 0