Skip to content

Commit

Permalink
Fix backup_directory fixture (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmyway authored Aug 30, 2024
1 parent d60dd45 commit d6fc633
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,9 +916,9 @@ def backup_directory(shell, request):
backup_path = os.path.join(backup_path_base, backup_dir_name)

if int(os.environ["TMT_REBOOT_COUNT"]) > 0 and os.path.exists(backup_path):
pytest.skip("Backup path created already.")

assert shell(f"mkdir {backup_path}").returncode == 0
print(f"\nBackup path {backup_path} is already created. Skipping for now.")
else:
assert shell(f"mkdir {backup_path}").returncode == 0

yield backup_path

Expand Down

0 comments on commit d6fc633

Please sign in to comment.