]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/crimson: Skip unsupported tests (Crimson)
authorMatan Breizman <mbreizma@redhat.com>
Mon, 8 May 2023 10:50:19 +0000 (10:50 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 8 May 2023 10:57:06 +0000 (10:57 +0000)
Align with `rbd_api_tests` and skip deep_copy and breaklock tests
in Crimson.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
qa/suites/crimson-rados/rbd/tasks/rbd_python_api_tests_old_format.yaml
qa/workunits/rbd/test_librbd_python.sh
src/test/pybind/test_rbd.py

index 441ac9727927647c58d3049dd6123a3abb73f9f7..c4c2b8a2bcc9abd3ebdf300070c37e8a0ec66245 100644 (file)
@@ -7,4 +7,4 @@ tasks:
 - workunit:
     clients:
       client.0:
-        - rbd/test_librbd_python.sh
+        - rbd/test_librbd_python.sh --eval-attr 'not (SKIP_IF_CRIMSON)'
index 88bfb810a78df64bfc696388d9adab9c3876b7e3..f276986485bdc88b6797368de2ac2552030c7f14 100755 (executable)
@@ -5,8 +5,8 @@ relpath=$(dirname $0)/../../../src/test/pybind
 if [ -n "${VALGRIND}" ]; then
   valgrind ${VALGRIND} --suppressions=${TESTDIR}/valgrind.supp \
     --errors-for-leak-kinds=definite --error-exitcode=1 \
-    python3 -m nose -v $relpath/test_rbd.py
+    python3 -m nose -v $relpath/test_rbd.py "$@"
 else
-    python3 -m nose -v $relpath/test_rbd.py
+    python3 -m nose -v $relpath/test_rbd.py "$@"
 fi
 exit 0
index a7b74acbb86d168097a9d5e5d8475f89b0056609..e42f7f00f091489ab6b8e4397cb8eaca4dc492a4 100644 (file)
@@ -12,6 +12,7 @@ import sys
 
 from datetime import datetime, timedelta
 from nose import with_setup, SkipTest
+from nose.plugins.attrib import attr
 from nose.tools import eq_ as eq, assert_raises, assert_not_equal
 from rados import (Rados,
                    LIBRADOS_OP_FLAG_FADVISE_DONTNEED,
@@ -777,6 +778,7 @@ class TestImage(object):
         self._test_copy(features, self.image.stat()['order'],
                         self.image.stripe_unit(), self.image.stripe_count())
 
+    @attr('SKIP_IF_CRIMSON')
     def test_deep_copy(self):
         global ioctx
         global features
@@ -2029,6 +2031,7 @@ class TestExclusiveLock(object):
             image.lock_acquire(RBD_LOCK_MODE_EXCLUSIVE)
             image.lock_release()
 
+    @attr('SKIP_IF_CRIMSON')
     def test_break_lock(self):
         blocklist_rados = Rados(conffile='')
         blocklist_rados.connect()