]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/cephfs_test_runner: setattr to class not instance 32571/head
authorKefu Chai <kchai@redhat.com>
Thu, 9 Jan 2020 11:36:37 +0000 (19:36 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 9 Jan 2020 12:48:23 +0000 (20:48 +0800)
commit204263b829bf33a15763d25826494dd3d66620ec
tree3ed0a30638c55c3902a66adce921e9f67e01d160
parent1ca0a119c132eee91e2e7092538055c33f282363
qa/tasks/cephfs_test_runner: setattr to class not instance

before this change, `setattr()` sets the instance specialized with a certain method
of test case, so in `MgrTestCase.setUpClass()`

assert cls.mgr_cluster is not None

fails,

after this change, instead of test case, the class of test suite is updated with the
specified params, even if we pass a certain test to test runner.
so we can

./run-backend-api-tests.sh tasks.mgr.test_dashboard.TestDashboard.test_standby

now. before this change, we can only:

./run-backend-api-tests.sh tasks.mgr.test_dashboard.TestDashboard

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/cephfs_test_runner.py