Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qa/workunits: use relative path instead of wget from git
Signed-off-by: Sage Weil <sage@redhat.com>
- Loading branch information
Showing
8 changed files
with
13 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
#!/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 | ||
sudo nosetests -v $(dirname $0)../../../src/test/pybind/test_cephfs | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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://git.ceph.com/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/pybind/test_rados.py" || \ | ||
wget -O test_rados.py "https://git.ceph.com/?p=ceph.git;a=blob_plain;hb=ref/heads/$CEPH_REF;f=src/test/pybind/test_rados.py" | ||
${PYTHON:-python} -m nose -v test_rados | ||
${PYTHON:-python} -m nose -v $(dirname $0)/../../../src/test/pybind/test_rados | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
#!/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://git.ceph.com/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/pybind/test_rbd.py" || \ | ||
wget -O test_rbd.py "https://git.ceph.com/?p=ceph.git;a=blob_plain;hb=ref/heads/$CEPH_REF;f=src/test/pybind/test_rbd.py" | ||
relpath=$(dirname $0)/../../../src/test/pybind | ||
|
||
if [ -n "${VALGRIND}" ]; then | ||
valgrind --tool=${VALGRIND} --suppressions=${TESTDIR}/valgrind.supp \ | ||
nosetests -v test_rbd | ||
nosetests -v $relpath/test_rbd | ||
else | ||
nosetests -v test_rbd | ||
nosetests -v $relpath/test_rbd | ||
fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters