Skip to content

Commit dea39f5

Browse files
Merge pull request #3511 from boegel/fix_easystack_tests
tweak test_easystack_basic to get better error reporting if it fails
2 parents ff3d33f + 54c8ee7 commit dea39f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/framework/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5621,7 +5621,7 @@ def test_easystack_basic(self):
56215621
toy_easystack = os.path.join(topdir, 'easystacks', 'test_easystack_basic.yaml')
56225622

56235623
args = ['--easystack', toy_easystack, '--stop', '--debug', '--experimental']
5624-
stdout, err = self.eb_main(args, do_build=True, return_error=True)
5624+
stdout = self.eb_main(args, do_build=True, raise_error=True)
56255625
patterns = [
56265626
r"[\S\s]*INFO Building from easystack:[\S\s]*",
56275627
r"[\S\s]*DEBUG EasyStack parsed\. Proceeding to install these Easyconfigs:.*?[\n]"
@@ -5633,7 +5633,7 @@ def test_easystack_basic(self):
56335633
]
56345634
for pattern in patterns:
56355635
regex = re.compile(pattern)
5636-
self.assertTrue(regex.match(stdout) is not None)
5636+
self.assertTrue(regex.match(stdout), "Pattern '%s' should be found in: %s" % (regex.pattern, stdout))
56375637

56385638
def test_easystack_wrong_structure(self):
56395639
"""Test for --easystack <easystack.yaml> when yaml easystack has wrong structure"""

0 commit comments

Comments
 (0)