diff --git a/ansible/config_sonic_basedon_testbed.yml b/ansible/config_sonic_basedon_testbed.yml index bcfb2ba242f..9687c60fbc0 100644 --- a/ansible/config_sonic_basedon_testbed.yml +++ b/ansible/config_sonic_basedon_testbed.yml @@ -819,6 +819,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 65aa73e2a41..073b5ca393c 100644 --- a/tests/test_pretest.py +++ b/tests/test_pretest.py @@ -400,6 +400,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))