diff options
author | Simone Weiß <simone.p.weiss@posteo.com> | 2024-02-16 21:10:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-19 11:39:08 +0000 |
commit | 0ba7038c09fa6b0d5aad79d1e01c5df2078110a9 (patch) | |
tree | b5bf5458b0c43ca18f84f6fe917222a0f1a65cab /scripts/patchtest | |
parent | 728b9ba88e65260c6a678befb1858fbf89348752 (diff) | |
download | poky-0ba7038c09fa6b0d5aad79d1e01c5df2078110a9.tar.gz |
patchtest: add stronger indication for failed tests
Do not only log that there has been an issue but add WARNING before for local
runs. Hopefully this helps to avoid that people reading the log to quickly miss
issues.
Fixes [YOCTO #15389]
(From OE-Core rev: 661c0a8fd8fe7bff61cea82778c25cf24d791267)
Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/patchtest')
-rwxr-xr-x | scripts/patchtest | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/patchtest b/scripts/patchtest index d0dc6e8fac..3163420220 100755 --- a/scripts/patchtest +++ b/scripts/patchtest | |||
@@ -164,9 +164,9 @@ def run(patch, logfile=None): | |||
164 | if premerge_result == 2 and postmerge_result == 2: | 164 | if premerge_result == 2 and postmerge_result == 2: |
165 | logger.error('patchtest: No test cases found - did you specify the correct suite directory?') | 165 | logger.error('patchtest: No test cases found - did you specify the correct suite directory?') |
166 | if premerge_result == 1 or postmerge_result == 1: | 166 | if premerge_result == 1 or postmerge_result == 1: |
167 | logger.error('patchtest: At least one patchtest caused a failure or an error - please check') | 167 | logger.error('WARNING: patchtest: At least one patchtest caused a failure or an error - please check') |
168 | else: | 168 | else: |
169 | logger.error('patchtest: All patchtests passed') | 169 | logger.error('OK: patchtest: All patchtests passed') |
170 | print('----------------------------------------------------------------------\n') | 170 | print('----------------------------------------------------------------------\n') |
171 | return premerge_result or postmerge_result | 171 | return premerge_result or postmerge_result |
172 | 172 | ||