From: John Spray Date: Wed, 2 Mar 2016 14:21:01 +0000 (+0000) Subject: qa: add test_python for cephfs X-Git-Tag: v10.1.1~124^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aed1872a1c8d7a0d8f97bb7d4422e2ef83357e08;p=ceph.git qa: add test_python for cephfs 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 --- diff --git a/qa/workunits/fs/test_python.sh b/qa/workunits/fs/test_python.sh new file mode 100755 index 000000000000..ea0af66e81e5 --- /dev/null +++ b/qa/workunits/fs/test_python.sh @@ -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