diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-08 13:18:33 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-23 20:27:57 -0700 |
commit | 45cb9d80ae274fe46ed64c76cc87a36fc994a182 (patch) | |
tree | 77ca29a914e77ed127574f3bdfe61e1eee0fb8e0 /tools | |
parent | 458be45afc79444b7ed66afc01d6e121dfa30d37 (diff) | |
download | u-boot-45cb9d80ae274fe46ed64c76cc87a36fc994a182.zip u-boot-45cb9d80ae274fe46ed64c76cc87a36fc994a182.tar.gz u-boot-45cb9d80ae274fe46ed64c76cc87a36fc994a182.tar.bz2 |
binman: Detect skipped tests
If tests are skipped we should ideally exit with an error, since there may
be a missing dependency. However at present this is not desirable since it
breaks travis tests. For now, just report the skips.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/binman/binman.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/binman/binman.py b/tools/binman/binman.py index aad2e9c..9f8c5c9 100755 --- a/tools/binman/binman.py +++ b/tools/binman/binman.py @@ -104,9 +104,14 @@ def RunTests(debug, processes, args): print(test.id(), err) for test, err in result.failures: print(err, result.failures) + if result.skipped: + print('%d binman test%s SKIPPED:' % + (len(result.skipped), 's' if len(result.skipped) > 1 else '')) + for skip_info in result.skipped: + print('%s: %s' % (skip_info[0], skip_info[1])) if result.errors or result.failures: - print('binman tests FAILED') - return 1 + print('binman tests FAILED') + return 1 return 0 def GetEntryModules(include_testing=True): |