Skip to content

Commit 366e71d

Browse files
authored
Merge pull request #4286 from branfosj/fixtests
fix broken GitHub tests
2 parents f42ea41 + 18eecb2 commit 366e71d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/framework/options.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4294,7 +4294,7 @@ def test_github_new_update_pr(self):
42944294
r"^Opening pull request \[DRY RUN\]",
42954295
r"^\* target: easybuilders/easybuild-easyconfigs:develop",
42964296
r"^\* from: %s/easybuild-easyconfigs:.*_new_pr_toy00" % GITHUB_TEST_ACCOUNT,
4297-
r"^\* title: \"\{tools\}\[gompi/2018a\] toy v0.0\"",
4297+
r"^\* title: \"\{tools\}\[gompi/2018a\] toy v0.0 w/ test\"",
42984298
r"\(created using `eb --new-pr`\)", # description
42994299
r"^\* overview of changes:",
43004300
r".*/toy-0.0-gompi-2018a-test.eb\s*\|",
@@ -4331,7 +4331,7 @@ def test_github_new_update_pr(self):
43314331
txt, _ = self._run_mock_eb(args, do_build=True, raise_error=True, testing=False)
43324332

43334333
regexs[-1] = r"^\s*2 files changed"
4334-
regexs.remove(r"^\* title: \"\{tools\}\[gompi/2018a\] toy v0.0\"")
4334+
regexs.remove(r"^\* title: \"\{tools\}\[gompi/2018a\] toy v0.0 w/ test\"")
43354335
regexs.append(r"^\* title: \"just a test\"")
43364336
regexs.append(r".*/bzip2-1.0.6.eb\s*\|")
43374337
regexs.append(r".*[0-9]+ deletions\(-\)")
@@ -4584,7 +4584,7 @@ def test_github_new_pr_python(self):
45844584
]
45854585
txt, _ = self._run_mock_eb(args, do_build=True, raise_error=True, testing=False)
45864586

4587-
regex = re.compile(r"^\* title: \"\{tools\}\[system/system\] toy v0.0 w/ Python 3.7.2\"$", re.M)
4587+
regex = re.compile(r"^\* title: \"\{tools\}\[system/system\] toy v0.0\"$", re.M)
45884588
self.assertTrue(regex.search(txt), "Pattern '%s' found in: %s" % (regex.pattern, txt))
45894589

45904590
# if multiple easyconfigs depending on Python are included, Python version is only listed once
@@ -4595,14 +4595,14 @@ def test_github_new_pr_python(self):
45954595

45964596
txt, _ = self._run_mock_eb(args + [gzip_ec], do_build=True, raise_error=True, testing=False)
45974597

4598-
regex = re.compile(r"^\* title: \"\{tools\}\[system/system\] toy v0.0, gzip v1.4 w/ Python 3.7.2\"$", re.M)
4598+
regex = re.compile(r"^\* title: \"\{tools\}\[system/system\] toy v0.0, gzip v1.4\"$", re.M)
45994599
self.assertTrue(regex.search(txt), "Pattern '%s' found in: %s" % (regex.pattern, txt))
46004600

46014601
# also check with Python listed via multi_deps
46024602
write_file(toy_ec, toy_ec_txt + "\nmulti_deps = {'Python': ['3.7.2', '2.7.15']}")
46034603
txt, _ = self._run_mock_eb(args, do_build=True, raise_error=True, testing=False)
46044604

4605-
regex = re.compile(r"^\* title: \"\{tools\}\[system/system\] toy v0.0 w/ Python 2.7.15 \+ 3.7.2\"$", re.M)
4605+
regex = re.compile(r"^\* title: \"\{tools\}\[system/system\] toy v0.0\"$", re.M)
46064606
self.assertTrue(regex.search(txt), "Pattern '%s' found in: %s" % (regex.pattern, txt))
46074607

46084608
def test_github_new_pr_delete(self):

0 commit comments

Comments
 (0)