From aed1872a1c8d7a0d8f97bb7d4422e2ef83357e08 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 2 Mar 2016 14:21:01 +0000 Subject: [PATCH] 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 --- qa/workunits/fs/test_python.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 qa/workunits/fs/test_python.sh 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 -- 2.47.3