From 5a58114498bcc155dfdbd61a54fa77097b5d5a45 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Mon, 20 Jan 2025 17:13:44 +0530 Subject: [PATCH] qa/tasks/nvmeof.py: make seperate calls in do_checks() When running 'nvme list-subsys ' command in do_checks(), instead of combining command for all devices with '&&', make seperate calls. Signed-off-by: Vallari Agrawal --- qa/tasks/nvmeof.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qa/tasks/nvmeof.py b/qa/tasks/nvmeof.py index e5c60f195bd..33cb51b8c01 100644 --- a/qa/tasks/nvmeof.py +++ b/qa/tasks/nvmeof.py @@ -356,12 +356,14 @@ class NvmeofThrasher(Thrasher, Greenlet): run.Raw('&&'), 'ceph', 'nvme-gw', 'show', 'mypool', 'mygroup0', run.Raw('&&'), 'sudo', 'nvme', 'list', ] + self.checker_host.run(args=check_cmd).wait() + for dev in self.devices: - check_cmd += [ - run.Raw('&&'), 'sudo', 'nvme', 'list-subsys', dev, + device_check_cmd = [ + 'sudo', 'nvme', 'list-subsys', dev, run.Raw('|'), 'grep', 'live optimized' - ] - self.checker_host.run(args=check_cmd).wait() + ] + self.checker_host.run(args=device_check_cmd) def switch_task(self): """ -- 2.39.5