diff --git a/test/framework/easyconfig.py b/test/framework/easyconfig.py index a410e202e4..5ecf493b2f 100644 --- a/test/framework/easyconfig.py +++ b/test/framework/easyconfig.py @@ -1367,7 +1367,6 @@ def test_sysroot_template(self): # Validate the value of the sysroot template if sysroot is unset (i.e. the build option is None) # As a test, we'll set the sysroot to self.test_prefix, as it has to be a directory that is guaranteed to exist - old_sysroot = build_option('sysroot') update_build_option('sysroot', self.test_prefix) ec = EasyConfig(test_ec) @@ -1375,9 +1374,6 @@ def test_sysroot_template(self): self.assertEqual(ec['buildopts'], "--some-opt=%s/" % self.test_prefix) self.assertEqual(ec['installopts'], "--some-opt=%s/" % self.test_prefix) - # Restore original value for sysroot build option - update_build_option('sysroot', old_sysroot) - def test_constant_doc(self): """test constant documentation""" doc = avail_easyconfig_constants() @@ -3266,6 +3262,7 @@ def test_template_constant_dict(self): 'nameletter': 'g', 'nameletterlower': 'g', 'parallel': None, + 'sysroot': '', 'toolchain_name': 'foss', 'toolchain_version': '2018a', 'version': '1.5',