mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 04:58:26 +00:00
oeqa/selftest/esdk: remove postconfig argument
Discovered when looking for users of get_bb_var()'s postconfig argument, this wrapper around runCmd() has a postconfig argument that has odd behaviour: it _appends_ the new configuration to local.conf instead of having them used for this specific run (unlike the other functions in commands.py) None of the eSDK tests use this functionality, so remove it. Future test cases that need to write further configuration should do so directly. (From OE-Core rev: 6196d096b95b36f8b72b4049d5479f8f23e7891d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5097aaeafa
commit
6355ba2cad
@@ -27,11 +27,7 @@ class oeSDKExtSelfTest(OESelftestTestCase):
|
|||||||
return glob.glob(pattern)[0]
|
return glob.glob(pattern)[0]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def run_esdk_cmd(env_eSDK, tmpdir_eSDKQA, cmd, postconfig=None, **options):
|
def run_esdk_cmd(env_eSDK, tmpdir_eSDKQA, cmd, **options):
|
||||||
if postconfig:
|
|
||||||
esdk_conf_file = os.path.join(tmpdir_eSDKQA, 'conf', 'local.conf')
|
|
||||||
with open(esdk_conf_file, 'a+') as f:
|
|
||||||
f.write(postconfig)
|
|
||||||
if not options:
|
if not options:
|
||||||
options = {}
|
options = {}
|
||||||
if not 'shell' in options:
|
if not 'shell' in options:
|
||||||
|
|||||||
Reference in New Issue
Block a user