@@ -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