Skip to content

Commit

Permalink
Fix tests for Fedora > 30, rpmconf changed output
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura authored and j-mracek committed Oct 16, 2019
1 parent 381af7b commit e881bf7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_rpmconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,12 @@ def merge_conf_files(_, conf_file, other_file):

lines = stdout.getvalue().splitlines()

expected_last_line = "File {0} was removed by 3rd party. Skipping.".format(new_path)
self.assertEqual(lines[-1], expected_last_line)
expected_last_line_to_f30 = "File {0} was removed by 3rd party. Skipping.".format(new_path)
# Newer rpmconf changed output since F31
expected_last_line_from_f31 = "File {0} has been merged.".format(new_path)

self.assertRegexpMatches(lines[-1], "{0}|{1}"
.format(expected_last_line_to_f30, expected_last_line_from_f31))

def test_diff_output(self):
self._create_conf()
Expand Down

0 comments on commit e881bf7

Please sign in to comment.