scripts: twister: west twister error codes match twister direct call
This commit fixes #54492 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. Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
This commit is contained in:
parent
83d5ed5825
commit
802600da7b
1 changed files with 2 additions and 1 deletions
|
@ -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"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue