From fefb4e1292561a8169ba3c2ef20480cc44735b7d Mon Sep 17 00:00:00 2001 From: Maor Blaustein Date: Mon, 12 Aug 2024 14:45:26 +0300 Subject: [PATCH] Fix is_service_on_node method Method should return boolean according to check, yet raises error upon expected non-zero exit status. Change-Id: I328edfabbf0b7ff0df8eadaf3a151aa2ab9fcfe4 --- whitebox_neutron_tempest_plugin/tests/scenario/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whitebox_neutron_tempest_plugin/tests/scenario/base.py b/whitebox_neutron_tempest_plugin/tests/scenario/base.py index 00db31a..963db95 100644 --- a/whitebox_neutron_tempest_plugin/tests/scenario/base.py +++ b/whitebox_neutron_tempest_plugin/tests/scenario/base.py @@ -541,7 +541,7 @@ class BaseTempestWhiteboxTestCase(base.BaseTempestTestCase): LOG.debug("Checking for service '%s' (regex) existence on host '%s'.", service_regex, host_ip) catch = ssh_client.exec_command( - "systemctl --type=service | grep '{}'".format( + "systemctl --type=service | grep '{}'; true".format( service_regex)).strip if catch: LOG.debug("Service found on host '%s':\n%s",