scripts: twister: west twister error codes match twister direct call
This commit fixes where return code 1 is returned
when twister tests fail when twister is called directly and
return code 0 in similar scenario but twister is invoked using
west.
@@ -57,7 +57,8 @@ class Twister(WestCommand):
)
options = self._parse_arguments(args=remainder, options=args)
- main(options)
+ ret = main(options)
+ sys.exit(ret)
def _parse_arguments(self, args, options):
"""Helper function for testing purposes"""
