mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02: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:
parent
5097aaeafa
commit
6355ba2cad
|
@ -27,11 +27,7 @@ class oeSDKExtSelfTest(OESelftestTestCase):
|
|||
return glob.glob(pattern)[0]
|
||||
|
||||
@staticmethod
|
||||
def run_esdk_cmd(env_eSDK, tmpdir_eSDKQA, cmd, postconfig=None, **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)
|
||||
def run_esdk_cmd(env_eSDK, tmpdir_eSDKQA, cmd, **options):
|
||||
if not options:
|
||||
options = {}
|
||||
if not 'shell' in options:
|
||||
|
|
Loading…
Reference in New Issue
Block a user