Skip to content

Commit

Permalink
Merge pull request #3304 from boegel/fix_broken_test
Browse files Browse the repository at this point in the history
fix broken test for --include-easyblocks-from-pr
  • Loading branch information
lexming authored Apr 27, 2020
2 parents bb02431 + 6afc01f commit be2e192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/framework/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -2750,7 +2750,7 @@ def test_xxx_include_easyblocks_from_pr(self):
write_file(self.logfile, '')

args = [
'--from-pr=9979', # PR for CMake easyconfig
'--from-pr=10487', # PR for CMake easyconfig
'--include-easyblocks-from-pr=1936', # PR for EB_CMake easyblock
'--unittest-file=%s' % self.logfile,
'--github-user=%s' % GITHUB_TEST_ACCOUNT,
Expand All @@ -2760,8 +2760,8 @@ def test_xxx_include_easyblocks_from_pr(self):
logtxt = read_file(self.logfile)

# easyconfig from pr is found
ec_pattern = os.path.join(self.test_prefix, '.*', 'files_pr9979', 'c', 'CMake',
'CMake-3.16.4-GCCcore-9.2.0.eb')
ec_pattern = os.path.join(self.test_prefix, '.*', 'files_pr10487', 'c', 'CMake',
'CMake-3.16.4-GCCcore-9.3.0.eb')
ec_regex = re.compile(r"Parsing easyconfig file %s" % ec_pattern, re.M)
self.assertTrue(ec_regex.search(logtxt), "Pattern '%s' found in: %s" % (ec_regex.pattern, logtxt))

Expand Down

0 comments on commit be2e192

Please sign in to comment.