Skip to content

Commit cf03257

Browse files
committed
fix checks for 'A meaningful commit message must be specified' error message in test_github_new_update_pr
1 parent 24f1276 commit cf03257

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/framework/options.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4599,7 +4599,7 @@ def test_github_new_update_pr(self):
45994599
'--git-working-dirs-path=%s' % git_working_dir,
46004600
':bzip2-1.0.6.eb',
46014601
])
4602-
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*bzip2-1.0.6.eb"
4602+
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*\nDeleted: bzip2-1.0.6.eb"
46034603

46044604
self.mock_stdout(True)
46054605
self.assertErrorRegex(EasyBuildError, error_msg, self.eb_main, args, raise_error=True, testing=False)
@@ -4678,7 +4678,8 @@ def test_github_new_update_pr(self):
46784678
gcc_ec,
46794679
'-D',
46804680
]
4681-
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*" + os.path.basename(gcc_ec)
4681+
error_msg = "A meaningful commit message must be specified via --pr-commit-msg.*\n"
4682+
error_msg += "Modified: " + os.path.basename(gcc_ec)
46824683
self.mock_stdout(True)
46834684
self.assertErrorRegex(EasyBuildError, error_msg, self.eb_main, args, raise_error=True)
46844685
self.mock_stdout(False)

0 commit comments

Comments
 (0)