Skip to content

Commit

Permalink
update regex to match if there's multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrlc committed Oct 12, 2023
1 parent 4dc5648 commit 4f7a38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/foreman/destructive/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_positive_all_packages_update(target_sat):
result = target_sat.cli.Packages.check_update()
# Regex to match if there are packages available to update
# Matches lines like '\n\nwalrus.noarch 5.21-1 custom_repo\n'
pattern = '(\\s+)\\n\\n(\\S+)(\\s+)(\\S+)(\\s+)(\\S+)\\n(\\s+)'
pattern = '(\\n){1,2}(\\S+)(\\s+)(\\S+)(\\s+)(\\S+)(\\n)'
matches = re.search(pattern, result.stdout)
assert matches is None # No packages available to update
assert 'FAIL' not in result.stdout
Expand Down

0 comments on commit 4f7a38d

Please sign in to comment.