Skip to content

Commit d666856

Browse files
committed
Removed prints in verbose mode regarding skipped print. Still this prints can be shown using --verbose-skipped switch
1 parent ac667d6 commit d666856

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

workspace_tools/singletest.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,12 @@ def generate_test_summary(test_summary):
827827
dest='firmware_global_name',
828828
help='Set global name for all produced projects. E.g. you can call all test binaries firmware.bin')
829829

830+
parser.add_option('', '--verbose-skipped',
831+
dest='verbose_skipped_tests',
832+
default=False,
833+
action="store_true",
834+
help='Prints some extra information about skipped tests')
835+
830836
parser.add_option('-v', '--verbose',
831837
dest='verbose',
832838
default=False,
@@ -921,18 +927,18 @@ def generate_test_summary(test_summary):
921927
continue
922928

923929
if opts.test_only_peripheral and not test.peripherals:
924-
if opts.verbose:
930+
if opts.verbose_skipped_tests:
925931
print "TargetTest::%s::NotPeripheralTestSkipped()" % (target)
926932
continue
927933

928934
if opts.test_only_common and test.peripherals:
929-
if opts.verbose:
935+
if opts.verbose_skipped_tests:
930936
print "TargetTest::%s::PeripheralTestSkipped()" % (target)
931937
continue
932938

933939
if test.automated and test.is_supported(target, toolchain):
934940
if not is_peripherals_available(target, test.peripherals):
935-
if opts.verbose:
941+
if opts.verbose_skipped_tests:
936942
test_peripherals = test.peripherals if test.peripherals else []
937943
print "TargetTest::%s::TestSkipped(%s)" % (target, ",".join(test_peripherals))
938944
continue

0 commit comments

Comments
 (0)