From: Leonardo Sandoval Date: Wed, 1 Feb 2017 18:04:55 +0000 (-0600) Subject: selftest/bbtests: use write_config instead of local.conf file X-Git-Tag: uninative-1.5~477 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=65c26d51eedc687c92e8ade262d24dc53ca71cec;p=openembedded-core.git selftest/bbtests: use write_config instead of local.conf file Extra configuration data should be write using the write_config method instead of manually appending to the local.conf file Signed-off-by: Leonardo Sandoval Signed-off-by: Ross Burton --- diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py index c4e50cbfa0..9dbac957ed 100644 --- a/meta/lib/oeqa/selftest/bbtests.py +++ b/meta/lib/oeqa/selftest/bbtests.py @@ -229,10 +229,7 @@ INHERIT_remove = \"report-error\" @testcase(1119) def test_non_gplv3(self): - data = 'INCOMPATIBLE_LICENSE = "GPLv3"' - conf = os.path.join(self.builddir, 'conf/local.conf') - ftools.append_file(conf ,data) - self.addCleanup(ftools.remove_from_file, conf ,data) + self.write_config('INCOMPATIBLE_LICENSE = "GPLv3"') result = bitbake('readline', ignore_status=True) self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output)) lic_dir = get_bb_var('LICENSE_DIRECTORY')