From 5666fd61d6dbd40be1d79354227cabd562e829ea Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 19 Dec 2016 14:08:11 -0500 Subject: [PATCH] qa/workunits: include extension for nose tests When you have a relative path you have to include the extension. Weird. Signed-off-by: Sage Weil --- qa/workunits/fs/test_python.sh | 2 +- qa/workunits/rados/test_python.sh | 2 +- qa/workunits/rbd/test_librbd_python.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/workunits/fs/test_python.sh b/qa/workunits/fs/test_python.sh index 7613dcf45dcb5..656d89f066b76 100755 --- a/qa/workunits/fs/test_python.sh +++ b/qa/workunits/fs/test_python.sh @@ -2,5 +2,5 @@ # Running as root because the filesystem root directory will be # owned by uid 0, and that's where we're writing. -sudo nosetests -v $(dirname $0)/../../../src/test/pybind/test_cephfs +sudo nosetests -v $(dirname $0)/../../../src/test/pybind/test_cephfs.py exit 0 diff --git a/qa/workunits/rados/test_python.sh b/qa/workunits/rados/test_python.sh index 60832df026cbb..80369c8d15acc 100755 --- a/qa/workunits/rados/test_python.sh +++ b/qa/workunits/rados/test_python.sh @@ -1,4 +1,4 @@ #!/bin/sh -ex -${PYTHON:-python} -m nose -v $(dirname $0)/../../../src/test/pybind/test_rados +${PYTHON:-python} -m nose -v $(dirname $0)/../../../src/test/pybind/test_rados.py exit 0 diff --git a/qa/workunits/rbd/test_librbd_python.sh b/qa/workunits/rbd/test_librbd_python.sh index 0e607eec43869..9bef91b4ebfec 100755 --- a/qa/workunits/rbd/test_librbd_python.sh +++ b/qa/workunits/rbd/test_librbd_python.sh @@ -4,8 +4,8 @@ relpath=$(dirname $0)/../../../src/test/pybind if [ -n "${VALGRIND}" ]; then valgrind --tool=${VALGRIND} --suppressions=${TESTDIR}/valgrind.supp \ - nosetests -v $relpath/test_rbd + nosetests -v $relpath/test_rbd.py else - nosetests -v $relpath/test_rbd + nosetests -v $relpath/test_rbd.py fi exit 0 -- 2.39.5