]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks: do not random.choice(a_view)
authorKefu Chai <kchai@redhat.com>
Thu, 2 Apr 2020 05:29:45 +0000 (13:29 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2020 12:33:47 +0000 (20:33 +0800)
commit9ca45bd942ef1ed0d7ed61d87caffdfc97e54e5e
tree724537855b47a328a7bc8fab9bec60476f1ea8a5
parent0930652318f0f2bbbefbe7dd829bc914405c9013
qa/tasks: do not random.choice(a_view)

use `random.sample()` instead of `random.choice(list(a_view))` for better performance.

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