Skip to content

Commit

Permalink
Review comments; No logical code change
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed Feb 16, 2022
1 parent b399799 commit 5bbcc42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/configlet/test_add_rack.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def configure_dut(duthosts, rand_one_dut_hostname):
if not restore_orig_minigraph(duthosts[rand_one_dut_hostname]):
backup_minigraph(duthosts[rand_one_dut_hostname])
log_info("configure_dut fixture DONE for {}".format(rand_one_dut_hostname))
yield 0
yield
finally:
log_info("configure_dut fixture on cleanup for {}".format(rand_one_dut_hostname))
restore_orig_minigraph(duthosts[rand_one_dut_hostname])
Expand Down
5 changes: 2 additions & 3 deletions tests/configlet/util/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,8 @@ def do_test_add_rack(duthost, is_storage_backend = False, skip_load=False,

init(duthost)

fpath = "/usr/local/lib/python3.9/dist-packages/generic_config_updater/services_validator.py"
ret = duthost.stat(path=fpath)
if not ret["stat"]["exists"]:
ret = duthost.shell("python3 -c 'import generic_config_updater'")
if ret["rc"]:
log_info("Skipping generic patch test as file does not exist: {}".format(fpath))
skip_generic_add = True
skip_generic_rm = True
Expand Down

0 comments on commit 5bbcc42

Please sign in to comment.