Skip to content

Commit 8172513

Browse files
committed
test: twister: update test_handler
update test_handler for new parameters Signed-off-by: Hake Huang <[email protected]>
1 parent f2686c1 commit 8172513

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/tests/twister/test_handlers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,16 +1479,16 @@ def mock_popen(command, *args, **kwargs):
14791479
return
14801480

14811481
handler.run_custom_script.assert_has_calls([
1482-
mock.call('dummy pre script', mock.ANY)
1482+
mock.call(['dummy pre script', mock.ANY], mock.ANY)
14831483
])
14841484

14851485
if raise_create_serial:
14861486
return
14871487

14881488
handler.run_custom_script.assert_has_calls([
1489-
mock.call('dummy pre script', mock.ANY),
1490-
mock.call('dummy post flash script', mock.ANY),
1491-
mock.call('dummy post script', mock.ANY)
1489+
mock.call(['dummy pre script', mock.ANY], mock.ANY),
1490+
mock.call(['dummy post flash script', mock.ANY], mock.ANY),
1491+
mock.call(['dummy post script', mock.ANY], mock.ANY)
14921492
])
14931493

14941494
if expected_reason:

0 commit comments

Comments
 (0)