Skip to content

Commit

Permalink
NAS-132352 / 25.04 / Fix new cloud backup test (#14905)
Browse files Browse the repository at this point in the history
* fix grep pattern

* better assertion
  • Loading branch information
creatorcary authored Nov 8, 2024
1 parent 80ffbf1 commit 0f640c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api2/test_cloud_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,5 +307,5 @@ def test_transfer_setting_choices():
], indirect=["cloud_backup_task"])
def test_other_transfer_settings(cloud_backup_task, options):
run_task(cloud_backup_task.task)
result = ssh(f"grep '{options}' /var/log/middlewared.log")
assert result.strip() != ""
result = ssh(f'grep "{options}" /var/log/middlewared.log')
assert options in result

0 comments on commit 0f640c9

Please sign in to comment.