@@ -1357,6 +1357,7 @@ def test_toy_extension_patches_postinstallcmds(self):
13571357 test_ec = os .path .join (self .test_prefix , 'test.eb' )
13581358 test_ec_txt = '\n ' .join ([
13591359 toy_ec_txt ,
1360+ 'exts_defaultclass = "DummyExtension"' ,
13601361 'exts_list = [' ,
13611362 ' ("bar", "0.0", {' ,
13621363 ' "buildopts": " && ls -l test.txt",' ,
@@ -1405,6 +1406,7 @@ def test_toy_extension_sources(self):
14051406 # test use of single-element list in 'sources' with just the filename
14061407 test_ec_txt = '\n ' .join ([
14071408 toy_ec_txt ,
1409+ 'exts_defaultclass = "DummyExtension"' ,
14081410 'exts_list = [' ,
14091411 ' ("bar", "0.0", {' ,
14101412 ' "sources": %s,' % bar_sources_spec ,
@@ -1432,6 +1434,7 @@ def test_toy_extension_sources(self):
14321434
14331435 test_ec_txt = '\n ' .join ([
14341436 toy_ec_txt ,
1437+ 'exts_defaultclass = "DummyExtension"' ,
14351438 'exts_list = [' ,
14361439 ' ("bar", "0.0", {' ,
14371440 ' "source_urls": ["file://%s"],' % test_source_path ,
@@ -1447,6 +1450,7 @@ def test_toy_extension_sources(self):
14471450 # check that checksums are picked up and verified
14481451 test_ec_txt = '\n ' .join ([
14491452 toy_ec_txt ,
1453+ 'exts_defaultclass = "DummyExtension"' ,
14501454 'exts_list = [' ,
14511455 ' ("bar", "0.0", {' ,
14521456 ' "source_urls": ["file://%s"],' % test_source_path ,
@@ -1470,6 +1474,7 @@ def test_toy_extension_sources(self):
14701474 # test again with correct checksum for bar-0.0.tar.gz, but faulty checksum for patch file
14711475 test_ec_txt = '\n ' .join ([
14721476 toy_ec_txt ,
1477+ 'exts_defaultclass = "DummyExtension"' ,
14731478 'exts_list = [' ,
14741479 ' ("bar", "0.0", {' ,
14751480 ' "source_urls": ["file://%s"],' % test_source_path ,
@@ -1493,6 +1498,7 @@ def test_toy_extension_sources(self):
14931498 # test again with correct checksums
14941499 test_ec_txt = '\n ' .join ([
14951500 toy_ec_txt ,
1501+ 'exts_defaultclass = "DummyExtension"' ,
14961502 'exts_list = [' ,
14971503 ' ("bar", "0.0", {' ,
14981504 ' "source_urls": ["file://%s"],' % test_source_path ,
@@ -1518,6 +1524,7 @@ def test_toy_extension_extract_cmd(self):
15181524 test_ec = os .path .join (self .test_prefix , 'test.eb' )
15191525 test_ec_txt = '\n ' .join ([
15201526 toy_ec_txt ,
1527+ 'exts_defaultclass = "DummyExtension"' ,
15211528 'exts_list = [' ,
15221529 ' ("bar", "0.0", {' ,
15231530 # deliberately incorrect custom extract command, just to verify that it's picked up
@@ -1556,6 +1563,7 @@ def test_toy_extension_sources_git_config(self):
15561563 test_ec_txt = '\n ' .join ([
15571564 toy_ec_txt ,
15581565 'prebuildopts = "echo \\ \" %s\\ \" > %s && ",' % (ext_code , ext_cfile ),
1566+ 'exts_defaultclass = "DummyExtension"' ,
15591567 'exts_list = [' ,
15601568 ' ("exts-git", "0.0", {' ,
15611569 ' "buildopts": "&& ls -l %s %s",' % (ext_tarball , ext_tarfile ),
@@ -1924,6 +1932,7 @@ def test_module_only_extensions(self):
19241932 test_ec_txt += '\n ' + '\n ' .join ([
19251933 "sanity_check_commands = ['barbar', 'toy']" ,
19261934 "sanity_check_paths = {'files': ['bin/barbar', 'bin/toy'], 'dirs': ['bin']}" ,
1935+ "exts_defaultclass = 'DummyExtension'" ,
19271936 "exts_list = [" ,
19281937 " ('barbar', '0.0', {" ,
19291938 " 'start_dir': 'src'," ,
@@ -1993,6 +2002,7 @@ def test_toy_exts_parallel(self):
19932002 test_ec = os .path .join (self .test_prefix , 'test.eb' )
19942003 test_ec_txt = read_file (toy_ec )
19952004 test_ec_txt += '\n ' + '\n ' .join ([
2005+ "exts_defaultclass = 'DummyExtension'" ,
19962006 "exts_list = [" ,
19972007 " ('ls')," ,
19982008 " ('bar', '0.0')," ,
@@ -2373,6 +2383,7 @@ def test_reproducibility_ext_easyblocks(self):
23732383 ec1 = os .path .join (self .test_prefix , 'toy1.eb' )
23742384 ec1_txt = '\n ' .join ([
23752385 toy_ec_txt ,
2386+ "exts_defaultclass = 'DummyExtension'" ,
23762387 "exts_list = [('barbar', '1.2', {'start_dir': 'src'})]" ,
23772388 "" ,
23782389 ])
@@ -3220,7 +3231,10 @@ def test_toy_build_hooks(self):
32203231 """Test use of --hooks."""
32213232 toy_ec = os .path .join (os .path .dirname (__file__ ), 'easyconfigs' , 'test_ecs' , 't' , 'toy' , 'toy-0.0.eb' )
32223233 test_ec = os .path .join (self .test_prefix , 'test.eb' )
3223- test_ec_txt = read_file (toy_ec ) + "\n exts_list = [('bar', '0.0'), ('toy', '0.0')]"
3234+ test_ec_txt = read_file (toy_ec ) + '\n ' .join ([
3235+ "exts_list = [('bar', '0.0'), ('toy', '0.0')]" ,
3236+ "exts_defaultclass = 'DummyExtension'" ,
3237+ ])
32243238 write_file (test_ec , test_ec_txt )
32253239
32263240 hooks_file = os .path .join (self .test_prefix , 'my_hooks.py' )
@@ -3364,6 +3378,7 @@ def test_toy_multi_deps(self):
33643378 test_ec = os .path .join (self .test_prefix , 'test.eb' )
33653379
33663380 # also inject (minimal) list of extensions to test iterative installation of extensions
3381+ test_ec_txt += "\n exts_defaultclass = 'DummyExtension'"
33673382 test_ec_txt += "\n exts_list = [('barbar', '1.2', {'start_dir': 'src'})]"
33683383
33693384 test_ec_txt += "\n multi_deps = {'GCC': ['4.6.3', '7.3.0-2.30']}"
0 commit comments