Skip to content

Commit

Permalink
fix checks for 'A meaningful commit message must be specified' error …
Browse files Browse the repository at this point in the history
…message in test_github_new_update_pr
  • Loading branch information
boegel committed Oct 8, 2024
1 parent 24f1276 commit cf03257
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/framework/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -4599,7 +4599,7 @@ def test_github_new_update_pr(self):
'--git-working-dirs-path=%s' % git_working_dir,
':bzip2-1.0.6.eb',
])
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*bzip2-1.0.6.eb"
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*\nDeleted: bzip2-1.0.6.eb"

self.mock_stdout(True)
self.assertErrorRegex(EasyBuildError, error_msg, self.eb_main, args, raise_error=True, testing=False)
Expand Down Expand Up @@ -4678,7 +4678,8 @@ def test_github_new_update_pr(self):
gcc_ec,
'-D',
]
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*" + os.path.basename(gcc_ec)
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*\n"
error_msg += "Modified: " + os.path.basename(gcc_ec)
self.mock_stdout(True)
self.assertErrorRegex(EasyBuildError, error_msg, self.eb_main, args, raise_error=True)
self.mock_stdout(False)
Expand Down

0 comments on commit cf03257

Please sign in to comment.