@@ -430,12 +430,12 @@ def get_result_summary_table():
430
430
pt .align ['percent [%]' ] = "r"
431
431
432
432
percent_progress = round (100.0 * counter_automated / float (counter_all ), 1 )
433
- str_progress = progress_bar (percent_progress , 75 )
433
+ str_progress = progress_bar (percent_progress , 75 )
434
434
pt .add_row ([counter_automated , counter_all , percent_progress , str_progress ])
435
435
print "Automation coverage:"
436
436
print pt
437
437
print
438
-
438
+
439
439
# Test automation coverage table print
440
440
test_id_cols = ['id' , 'automated' , 'all' , 'percent [%]' , 'progress' ]
441
441
pt = PrettyTable (test_id_cols )
@@ -512,6 +512,10 @@ def progress_bar(percent_progress, saturation=0):
512
512
action = "store_true" ,
513
513
help = 'Test only peripheral declared for MUT and skip common tests' )
514
514
515
+ parser .add_option ('-n' , '--test-by-names' ,
516
+ dest = 'test_by_names' ,
517
+ help = 'Runs only test enumerated it this switch' )
518
+
515
519
parser .add_option ('-v' , '--verbose' ,
516
520
dest = 'verbose' ,
517
521
default = False ,
@@ -564,6 +568,9 @@ def progress_bar(percent_progress, saturation=0):
564
568
build_dir = join (BUILD_DIR , "test" , target , toolchain )
565
569
566
570
for test_id , test in TEST_MAP .iteritems ():
571
+ if opts .test_by_names and test_id not in opts .test_by_names .split (',' ):
572
+ continue
573
+
567
574
if test_ids and test_id not in test_ids :
568
575
continue
569
576
0 commit comments