|
40 | 40 | from easybuild.tools import run
|
41 | 41 | from easybuild.tools.build_log import EasyBuildError
|
42 | 42 | from easybuild.tools.config import build_option, build_path, get_build_log_path, get_log_filename, get_repositorypath
|
43 |
| -from easybuild.tools.config import install_path, log_file_format, log_path, source_paths |
| 43 | +from easybuild.tools.config import install_path, log_file_format, log_path, source_paths, update_build_option |
44 | 44 | from easybuild.tools.config import BuildOptions, ConfigurationVariables
|
45 | 45 | from easybuild.tools.config import DEFAULT_PATH_SUBDIRS, init_build_options
|
46 | 46 | from easybuild.tools.filetools import copy_dir, mkdir, write_file
|
@@ -677,6 +677,13 @@ def test_get_build_log_path(self):
|
677 | 677 | init_config(args=['--tmp-logdir=%s' % build_log_path])
|
678 | 678 | self.assertEqual(get_build_log_path(), build_log_path)
|
679 | 679 |
|
| 680 | + def test_update_build_option(self): |
| 681 | + """Test updating of a build option.""" |
| 682 | + self.assertEqual(build_option('banned_linked_shared_libs'), None) |
| 683 | + |
| 684 | + update_build_option('banned_linked_shared_libs', '/usr/lib64/libssl.so.1.1') |
| 685 | + self.assertEqual(build_option('banned_linked_shared_libs'), '/usr/lib64/libssl.so.1.1') |
| 686 | + |
680 | 687 |
|
681 | 688 | def suite():
|
682 | 689 | return TestLoaderFiltered().loadTestsFromTestCase(EasyBuildConfigTest, sys.argv[1:])
|
|
0 commit comments