twister: Always change skip to error on integration platforms

Before only with --integration such skips were changed to errors.
This hinders issues when twister is call with --all flag in CI
and new skips on integration platforms are not caught. Then those
skips cause errors in other PRs when --integration was used.

Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
This commit is contained in:
Maciej Perkowski 2023-09-15 15:22:15 +02:00 committed by Anas Nashif
commit 42aa8fd72c

View file

@ -1024,8 +1024,8 @@ class TestPlan:
def change_skip_to_error_if_integration(options, instance):
''' If integration mode is on all skips on integration_platforms are treated as errors.'''
if options.integration and instance.platform.name in instance.testsuite.integration_platforms \
''' All skips on integration_platforms are treated as errors.'''
if instance.platform.name in instance.testsuite.integration_platforms \
and "quarantine" not in instance.reason.lower():
# Do not treat this as error if filter type is command line
filters = {t['type'] for t in instance.filters}