Skip to content

Commit e545186

Browse files
author
ocaisa
authored
Merge pull request #3521 from boegel/easystack_test_dry_run
use --dry-run in test_easystack_basic to avoid downloading of binutils sources
2 parents b08beb1 + 84911f8 commit e545186

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

easybuild/framework/easystack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def parse_easystack(filepath):
225225

226226
general_options = easystack.get_general_options()
227227

228-
_log.debug("EasyStack parsed. Proceeding to install these Easyconfigs: \n'%s'" % "',\n'".join(easyconfig_names))
228+
_log.debug("EasyStack parsed. Proceeding to install these Easyconfigs: %s" % ', '.join(sorted(easyconfig_names)))
229229
if len(general_options) != 0:
230230
_log.debug("General options for installation are: \n%s" % str(general_options))
231231
else:

test/framework/options.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5620,20 +5620,19 @@ def test_easystack_basic(self):
56205620
topdir = os.path.dirname(os.path.abspath(__file__))
56215621
toy_easystack = os.path.join(topdir, 'easystacks', 'test_easystack_basic.yaml')
56225622

5623-
args = ['--easystack', toy_easystack, '--stop', '--debug', '--experimental']
5623+
args = ['--easystack', toy_easystack, '--debug', '--experimental', '--dry-run']
56245624
stdout = self.eb_main(args, do_build=True, raise_error=True)
56255625
patterns = [
56265626
r"[\S\s]*INFO Building from easystack:[\S\s]*",
5627-
r"[\S\s]*DEBUG EasyStack parsed\. Proceeding to install these Easyconfigs:.*?[\n]"
5628-
r"[\S\s]*INFO building and installing binutils/2\.25-GCCcore-4\.9\.3[\S\s]*",
5629-
r"[\S\s]*INFO building and installing binutils/2\.26-GCCcore-4\.9\.3[\S\s]*",
5630-
r"[\S\s]*INFO building and installing toy/0\.0-gompi-2018a-test[\S\s]*",
5631-
r"[\S\s]*INFO COMPLETED: Installation STOPPED successfully[\S\s]*",
5632-
r"[\S\s]*INFO Build succeeded for 3 out of 3[\S\s]*"
5627+
r"[\S\s]*DEBUG EasyStack parsed\. Proceeding to install these Easyconfigs: "
5628+
r"binutils-2.25-GCCcore-4.9.3.eb, binutils-2.26-GCCcore-4.9.3.eb, toy-0.0-gompi-2018a-test.eb",
5629+
r"\* \[ \] .*/test_ecs/b/binutils/binutils-2.25-GCCcore-4.9.3.eb \(module: binutils/2.25-GCCcore-4.9.3\)",
5630+
r"\* \[ \] .*/test_ecs/b/binutils/binutils-2.26-GCCcore-4.9.3.eb \(module: binutils/2.26-GCCcore-4.9.3\)",
5631+
r"\* \[ \] .*/test_ecs/t/toy/toy-0.0-gompi-2018a-test.eb \(module: toy/0.0-gompi-2018a-test\)",
56335632
]
56345633
for pattern in patterns:
56355634
regex = re.compile(pattern)
5636-
self.assertTrue(regex.match(stdout), "Pattern '%s' should be found in: %s" % (regex.pattern, stdout))
5635+
self.assertTrue(regex.search(stdout), "Pattern '%s' should be found in: %s" % (regex.pattern, stdout))
56375636

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

0 commit comments

Comments
 (0)