ceph/qa/workunits/fs/test_python.sh
John Spray aed1872a1c 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 <john.spray@redhat.com>
2016-03-14 12:32:56 +00:00

11 lines
449 B
Bash
Executable File

#!/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