]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: use relative path instead of wget from git
authorSage Weil <sage@redhat.com>
Thu, 15 Dec 2016 20:10:28 +0000 (15:10 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Dec 2016 13:25:44 +0000 (14:25 +0100)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit cf294777ea92f0911813a7132068584d4f73a65a)

Conflicts: (all trivial)
qa/workunits/fs/test_python.sh
qa/workunits/rados/test_python.sh
qa/workunits/rbd/rbd_mirror.sh
qa/workunits/rbd/rbd_mirror_stress.sh
qa/workunits/rbd/test_librbd_python.sh
qa/workunits/rbd/test_lock_fence.sh

qa/workunits/rados/test_python.sh
qa/workunits/rbd/notify_master.sh
qa/workunits/rbd/notify_slave.sh
qa/workunits/rbd/test_librbd_python.sh
qa/workunits/rbd/test_lock_fence.sh

index 39595fe33298f4b847bb3f81e70d68c56fd6bdbe..60832df026cbb378b29509b56e8f0eea17b7c5e9 100755 (executable)
@@ -1,8 +1,4 @@
 #!/bin/sh -ex
 
-CEPH_REF=${CEPH_REF:-master}
-#wget -q https://raw.github.com/ceph/ceph/$CEPH_REF/src/test/pybind/test_rados.py
-wget -O test_rados.py "https://ceph.com/git/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/pybind/test_rados.py" || \
-    wget -O test_rados.py "https://ceph.com/git/?p=ceph.git;a=blob_plain;hb=ref/heads/$CEPH_REF;f=src/test/pybind/test_rados.py"
-nosetests -v test_rados
+${PYTHON:-python} -m nose -v $(dirname $0)/../../../src/test/pybind/test_rados
 exit 0
index 3d1b2243c56c0a612e39a4186c5b48a63b9eb419..6ebea31ec8055947820987299b4355a856a25173 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/sh -ex
 
-CEPH_REF=${CEPH_REF:-master}
-wget -O test_notify.py "https://git.ceph.com/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/librbd/test_notify.py"
-
-python test_notify.py master
+relpath=$(dirname $0)/../../../src/test/librbd
+python $relpath/test_notify.py master
 exit 0
index e94894ac5b87adbd0645f13ef235270eb8fe4dbb..ea66161aefa249bb86e44b5e4b60204884646fac 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/sh -ex
 
-CEPH_REF=${CEPH_REF:-master}
-wget -O test_notify.py "https://git.ceph.com/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/librbd/test_notify.py"
-
-python test_notify.py slave
+relpath=$(dirname $0)/../../../src/test/librbd
+python $relpath/test_notify.py slave
 exit 0
index 0d89b369d02474b3fca70caf37f066bd88a97ba5..72c975e4e64686c44d74856a1aa30855e1f78366 100755 (executable)
@@ -1,8 +1,5 @@
 #!/bin/sh -ex
 
-CEPH_REF=${CEPH_REF:-master}
-#wget -q https://raw.github.com/ceph/ceph/$CEPH_REF/src/test/pybind/test_rbd.py
-wget -O test_rbd.py "https://ceph.com/git/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/pybind/test_rbd.py" || \
-    wget -O test_rbd.py "https://ceph.com/git/?p=ceph.git;a=blob_plain;hb=ref/heads/$CEPH_REF;f=src/test/pybind/test_rbd.py"
-nosetests -v test_rbd
+relpath=$(dirname $0)/../../../src/test/pybind
+nosetests -v $relpath/test_rbd
 exit 0
index dc34cb1deb1e2cc8fc7c55990b63c42e18c0f913..a688ea62d614bd78c999522b3f99479c134efd30 100755 (executable)
@@ -3,10 +3,8 @@
 
 IMAGE=rbdrw-image
 LOCKID=rbdrw
-RBDRW=rbdrw.py
-CEPH_REF=${CEPH_REF:-master}
-
-wget -O $RBDRW "https://ceph.com/git/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/librbd/rbdrw.py"
+RELPATH=$(dirname $0)/../../../src/test/pybind
+RBDRW=$RELPATH/rbdrw.py
 
 rbd create $IMAGE --size 10 --image-format 2 --image-shared || exit 1