diff --git a/ansible/config_sonic_basedon_testbed.yml b/ansible/config_sonic_basedon_testbed.yml index 552a28125a..cae974d89f 100644 --- a/ansible/config_sonic_basedon_testbed.yml +++ b/ansible/config_sonic_basedon_testbed.yml @@ -687,6 +687,11 @@ when: "'dualtor-mixed' in topo or 'dualtor-aa' in topo" + - name: execute "TSB" on T2 DUTs + become: True + shell: "TSB" + when: "'t2' in topo" + - name: execute cli "config save -y" to save current minigraph as startup-config become: true shell: config save -y diff --git a/tests/test_pretest.py b/tests/test_pretest.py index 9fbc147f96..5121d814ab 100644 --- a/tests/test_pretest.py +++ b/tests/test_pretest.py @@ -394,6 +394,7 @@ def test_disable_startup_tsa_tsb_service(duthosts, localhost): duthost.shell("sudo mv {} {}".format(startup_tsa_tsb_file_path, backup_tsa_tsb_file_path)) output = duthost.shell("TSB", module_ignore_errors=True) pytest_assert(not output['rc'], "Failed TSB") + duthost.shell("sudo config save -y") else: logger.info("{} file does not exist in the specified path on dut {}". format(startup_tsa_tsb_file_path, duthost.hostname))