Skip to content

Commit

Permalink
[configlet] Improve test if folder already exists (sonic-net#13764)
Browse files Browse the repository at this point in the history
  • Loading branch information
wen587 authored Jul 25, 2024
1 parent 9c6f947 commit a565bde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/configlet/util/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def init(duthost):

for i in [data_dir, orig_db_dir, no_t0_db_dir, clet_db_dir,
patch_add_t0_dir, patch_rm_t0_dir, files_dir]:
os.mkdir(i)
if not os.path.exists(i):
os.mkdir(i)

init_data["files_dir"] = files_dir
init_data["data_dir"] = data_dir
Expand Down

0 comments on commit a565bde

Please sign in to comment.