twister: Fix flashing timeout command line options check
Fix `--device-flash-with-test` command line options check logic to be effective with `--device-testing`. Remove `--device-flash-timeout` check for `--device-testing` presence as marginal. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
This commit is contained in:
parent
39928ae4a7
commit
7afeefd7dd
1 changed files with 2 additions and 6 deletions
|
|
@ -729,12 +729,8 @@ def parse_arguments(parser, args, options = None):
|
|||
only one platform is allowed""")
|
||||
sys.exit(1)
|
||||
|
||||
if options.device_flash_timeout and options.device_testing is None:
|
||||
logger.error("--device-flash-timeout requires --device-testing")
|
||||
sys.exit(1)
|
||||
|
||||
if options.device_flash_with_test and options.device_testing is None:
|
||||
logger.error("--device-flash-with-test requires --device-testing")
|
||||
if options.device_flash_with_test and not options.device_testing:
|
||||
logger.error("--device-flash-with-test requires --device_testing")
|
||||
sys.exit(1)
|
||||
|
||||
if options.shuffle_tests and options.subset is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue