File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,12 @@ def get_result_summary_table():
472
472
action = "store_true" ,
473
473
help = 'Prints information about all tests and exits' )
474
474
475
+ parser .add_option ('-P' , '--only-peripheral' ,
476
+ dest = 'test_only_peripheral' ,
477
+ default = False ,
478
+ action = "store_true" ,
479
+ help = 'Test only peripheral declared for MUT and skip common tests' )
480
+
475
481
parser .add_option ('-v' , '--verbose' ,
476
482
dest = 'verbose' ,
477
483
default = False ,
@@ -527,6 +533,11 @@ def get_result_summary_table():
527
533
if test_ids and test_id not in test_ids :
528
534
continue
529
535
536
+ if opts .test_only_peripheral and not test .peripherals :
537
+ if opts .verbose :
538
+ print "TargetTest::%s::NotPeripheralTestSkipped(%s)" % (target , "," .join (test .peripherals ))
539
+ continue
540
+
530
541
if test .automated and test .is_supported (target , toolchain ):
531
542
if not is_peripherals_available (target , test .peripherals ):
532
543
if opts .verbose :
You can’t perform that action at this time.
0 commit comments