@@ -3933,7 +3933,7 @@ def test_github_xxx_include_easyblocks_from_pr(self):
39333933
39343934 args = [
39353935 '--include-easyblocks=%s/*.py' % self .test_prefix , # this shouldn't interfere
3936- '--include-easyblocks-from-pr=3399 ' , # a PR for CMakeMake easyblock
3936+ '--include-easyblocks-from-pr=3677 ' , # a PR for CMakeMake easyblock
39373937 '--list-easyblocks=detailed' ,
39383938 '--unittest-file=%s' % self .logfile ,
39393939 '--github-user=%s' % GITHUB_TEST_ACCOUNT ,
@@ -3947,7 +3947,7 @@ def test_github_xxx_include_easyblocks_from_pr(self):
39473947 logtxt = read_file (self .logfile )
39483948
39493949 self .assertFalse (stderr )
3950- self .assertEqual (stdout , "== easyblock cmakemake.py included from PR #3399 \n " )
3950+ self .assertEqual (stdout , "== easyblock cmakemake.py included from PR #3677 \n " )
39513951
39523952 # easyblock included from pr is found
39533953 path_pattern = os .path .join (self .test_prefix , '.*' , 'included-easyblocks-.*' , 'easybuild' , 'easyblocks' )
@@ -3977,7 +3977,7 @@ def test_github_xxx_include_easyblocks_from_pr(self):
39773977 # including the same easyblock twice should work and give priority to the one from the PR
39783978 args = [
39793979 '--include-easyblocks=%s/*.py' % self .test_prefix ,
3980- '--include-easyblocks-from-pr=3399 ' ,
3980+ '--include-easyblocks-from-pr=3677 ' ,
39813981 '--list-easyblocks=detailed' ,
39823982 '--unittest-file=%s' % self .logfile ,
39833983 '--github-user=%s' % GITHUB_TEST_ACCOUNT ,
@@ -3991,9 +3991,9 @@ def test_github_xxx_include_easyblocks_from_pr(self):
39913991 logtxt = read_file (self .logfile )
39923992
39933993 expected = "WARNING: One or more easyblocks included from multiple locations: "
3994- expected += "cmakemake.py (the one(s) from PR #3399 will be used)"
3994+ expected += "cmakemake.py (the one(s) from PR #3677 will be used)"
39953995 self .assertEqual (stderr .strip (), expected )
3996- self .assertEqual (stdout , "== easyblock cmakemake.py included from PR #3399 \n " )
3996+ self .assertEqual (stdout , "== easyblock cmakemake.py included from PR #3677 \n " )
39973997
39983998 # easyblock included from pr is found
39993999 path_pattern = os .path .join (self .test_prefix , '.*' , 'included-easyblocks-.*' , 'easybuild' , 'easyblocks' )
@@ -4027,8 +4027,8 @@ def test_github_xxx_include_easyblocks_from_pr(self):
40274027 write_file (self .logfile , '' )
40284028
40294029 args = [
4030- '--from-pr=22227 ' , # PR for Togl easyconfig
4031- '--include-easyblocks-from-pr=3563,3634 ' , # PRs for ConfigureMake and GROMACS easyblock
4030+ '--from-pr=22589 ' , # PR for DIAMOND easyconfig
4031+ '--include-easyblocks-from-pr=3677,3674 ' , # PRs for CMakeMake and LLVM easyblock
40324032 '--unittest-file=%s' % self .logfile ,
40334033 '--github-user=%s' % GITHUB_TEST_ACCOUNT ,
40344034 '--extended-dry-run' ,
@@ -4042,27 +4042,27 @@ def test_github_xxx_include_easyblocks_from_pr(self):
40424042 logtxt = read_file (self .logfile )
40434043
40444044 self .assertFalse (stderr )
4045- self .assertEqual (stdout , "== easyblock configuremake .py included from PR #3563 \n " +
4046- "== easyblock gromacs .py included from PR #3634 \n " )
4045+ self .assertEqual (stdout , "== easyblock cmakemake .py included from PR #3677 \n " +
4046+ "== easyblock llvm .py included from PR #3674 \n " )
40474047
40484048 # easyconfig from pr is found
4049- ec_pattern = os .path .join (self .test_prefix , '.*' , 'files_pr22227 ' , 't ' , 'Togl ' ,
4050- 'Togl -2.0-GCCcore -13.3.0.eb' )
4049+ ec_pattern = os .path .join (self .test_prefix , '.*' , 'files_pr22589 ' , 'd ' , 'DIAMOND ' ,
4050+ 'DIAMOND -2.1.11-GCC -13.3.0.eb' )
40514051 ec_regex = re .compile (r"Parsing easyconfig file %s" % ec_pattern , re .M )
40524052 self .assertTrue (ec_regex .search (logtxt ), "Pattern '%s' found in: %s" % (ec_regex .pattern , logtxt ))
40534053
40544054 # easyblock included from pr is found
40554055 eb_regex = re .compile (
4056- r"Derived full easyblock module path for ConfigureMake : easybuild.easyblocks.generic.configuremake " , re .M )
4056+ r"Derived full easyblock module path for CMakeMake : easybuild.easyblocks.generic.cmakemake " , re .M )
40574057 self .assertTrue (eb_regex .search (logtxt ), "Pattern '%s' found in: %s" % (eb_regex .pattern , logtxt ))
40584058
40594059 # easyblock is found via get_easyblock_class
4060- klass = get_easyblock_class ('ConfigureMake ' )
4060+ klass = get_easyblock_class ('CMakeMake ' )
40614061 self .assertTrue (issubclass (klass , EasyBlock ), "%s is an EasyBlock derivative class" % klass )
40624062
40634063 # 'undo' import of easyblocks
4064- del sys .modules ['easybuild.easyblocks.gromacs ' ]
4065- del sys .modules ['easybuild.easyblocks.generic.configuremake ' ]
4064+ del sys .modules ['easybuild.easyblocks.llvm ' ]
4065+ del sys .modules ['easybuild.easyblocks.generic.cmakemake ' ]
40664066 sys .path [:] = orig_local_sys_path
40674067 import easybuild .easyblocks
40684068 reload (easybuild .easyblocks )
@@ -4856,7 +4856,7 @@ def test_github_new_update_pr(self):
48564856 self .assertTrue (regex .search (txt ), "Pattern '%s' found in: %s" % (regex .pattern , txt ))
48574857
48584858 # modifying an existing easyconfig requires a custom PR title
4859- gcc_ec = os .path .join (test_ecs , 'g' , 'GCC' , 'GCC-4.9.2 .eb' )
4859+ gcc_ec = os .path .join (test_ecs , 'g' , 'GCC' , 'GCC-10.2.0 .eb' )
48604860 self .assertExists (gcc_ec )
48614861
48624862 args = [
@@ -5103,7 +5103,7 @@ def test_github_new_pr_delete(self):
51035103
51045104 regexs = [
51055105 r"^== fetching branch 'develop' from https://github.com/easybuilders/easybuild-easyconfigs.git..." ,
5106- r 'title: "delete {ec_name}"' ,
5106+ rf 'title: "delete { ec_name } "' ,
51075107 r"1 file(s?) changed,( 0 insertions\(\+\),)? [0-9]+ deletions\(-\)" ,
51085108 ]
51095109 self ._assert_regexs (regexs , txt )
0 commit comments