summaryrefslogtreecommitdiffstats
path: root/qa
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2023-06-20 22:29:37 +0200
committerCasey Bodley <cbodley@redhat.com>2023-07-06 17:02:37 +0200
commit0d0128f50edd16dd257a4b897bb63d9168497f80 (patch)
tree7e2525fbae0fed55dd0e33d68eabb79500cfc055 /qa
parenttest/pybind/cephfs: convert from nose to pytest (diff)
downloadceph-0d0128f50edd16dd257a4b897bb63d9168497f80.tar.xz
ceph-0d0128f50edd16dd257a4b897bb63d9168497f80.zip
test/pybind/rados: convert from nose to pytest
* replace nose.Skiptest with pytest.skip() * replace nose attrs with @pytest.mark * replace nose assertions * replace setUp/tearDown with setup/teardown_method Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'qa')
-rw-r--r--qa/suites/crimson-rados/basic/tasks/rados_python.yaml2
-rwxr-xr-xqa/workunits/rados/test_python.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/qa/suites/crimson-rados/basic/tasks/rados_python.yaml b/qa/suites/crimson-rados/basic/tasks/rados_python.yaml
index 454801bfd50..1d315ddeb15 100644
--- a/qa/suites/crimson-rados/basic/tasks/rados_python.yaml
+++ b/qa/suites/crimson-rados/basic/tasks/rados_python.yaml
@@ -13,4 +13,4 @@ tasks:
timeout: 1h
clients:
client.0:
- - rados/test_python.sh --eval-attr 'not (wait or tier or ec or bench or stats)'
+ - rados/test_python.sh -m 'not (wait or tier or ec or bench or stats)'
diff --git a/qa/workunits/rados/test_python.sh b/qa/workunits/rados/test_python.sh
index 469fcb7aa32..cf4597a4140 100755
--- a/qa/workunits/rados/test_python.sh
+++ b/qa/workunits/rados/test_python.sh
@@ -1,5 +1,5 @@
#!/bin/sh -ex
ceph osd pool create rbd
-${PYTHON:-python3} -m nose -v $(dirname $0)/../../../src/test/pybind/test_rados.py "$@"
+${PYTHON:-python3} -m pytest -v $(dirname $0)/../../../src/test/pybind/test_rados.py "$@"
exit 0