tests: twister: runner add runner test
add test for platform in extra_args Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
parent
c05e4802fb
commit
33fe360bfc
1 changed files with 4 additions and 2 deletions
|
|
@ -2097,11 +2097,13 @@ def test_projectbuilder_cmake():
|
|||
instance_mock = mock.Mock()
|
||||
instance_mock.handler = 'dummy handler'
|
||||
instance_mock.build_dir = os.path.join('build', 'dir')
|
||||
instance_mock.platform.name = 'frdm_k64f'
|
||||
env_mock = mock.Mock()
|
||||
|
||||
pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
|
||||
pb.build_dir = 'build_dir'
|
||||
pb.testsuite.extra_args = ['some', 'args']
|
||||
pb.testsuite.platform = instance_mock.platform
|
||||
pb.testsuite.extra_args = ['some', 'platform:frdm_k64f:args']
|
||||
pb.testsuite.extra_conf_files = ['some', 'files1']
|
||||
pb.testsuite.extra_overlay_confs = ['some', 'files2']
|
||||
pb.testsuite.extra_dtc_overlay_files = ['some', 'files3']
|
||||
|
|
@ -2114,7 +2116,7 @@ def test_projectbuilder_cmake():
|
|||
|
||||
assert res == cmake_res_mock
|
||||
pb.cmake_assemble_args.assert_called_once_with(
|
||||
pb.testsuite.extra_args,
|
||||
['some', 'args'],
|
||||
pb.instance.handler,
|
||||
pb.testsuite.extra_conf_files,
|
||||
pb.testsuite.extra_overlay_confs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue