diff --git a/tests/common/config_reload.py b/tests/common/config_reload.py index 1c62df0e722..6beca328be2 100644 --- a/tests/common/config_reload.py +++ b/tests/common/config_reload.py @@ -24,10 +24,10 @@ def config_reload(duthost, config_source='config_db', wait=120): logger.info('reloading {}'.format(config_source)) if config_source == 'minigraph': - duthost.command('config load_minigraph -y') - duthost.command('config save -y') + duthost.shell('config load_minigraph -y &>/dev/null') + duthost.shell('config save -y') if config_source == 'config_db': - duthost.command('config reload -y') + duthost.shell('config reload -y &>/dev/null') time.sleep(wait) diff --git a/tests/platform_tests/test_reload_config.py b/tests/platform_tests/test_reload_config.py index cbb5f5618a3..e83288fa5ea 100644 --- a/tests/platform_tests/test_reload_config.py +++ b/tests/platform_tests/test_reload_config.py @@ -27,7 +27,7 @@ def test_reload_configuration(duthost, conn_graph_facts): asic_type = duthost.facts["asic_type"] logging.info("Reload configuration") - duthost.command("sudo config reload -y") + duthost.shell("sudo config reload -y &>/dev/null") logging.info("Wait until all critical services are fully started") check_critical_services(duthost) diff --git a/tests/vlan/test_vlan.py b/tests/vlan/test_vlan.py index 022c9e7221e..e56b956bf0c 100644 --- a/tests/vlan/test_vlan.py +++ b/tests/vlan/test_vlan.py @@ -184,7 +184,7 @@ def tearDown(vlan_ports_list, duthost, ptfhost, vlan_intfs_list, portchannel_int except RunAnsibleModuleFail as e: logger.error(e) - duthost.command("config reload -y") + duthost.shell("config reload -y &>/dev/null") # make sure Portchannels go up for post-test link sanity time.sleep(90)