Skip to content

Binary suite exit code on windows #1892

Open
@pchar2

Description

@pchar2

The exit code of suites binaries is not redirected on windows.

Environment

  • OS : windows 10
  • Rez version : 3.2.1
  • Rez python version : Python 3.11.4

To Reproduce with a test package like pylint

  1. rez-pip -v -i --python-version 3.11 pylint
  2. Create a suite with the pylint package
  3. Create a file with incorrect python file
  4. .\pylint_suite\bin\pylint.exe.cmd .\file.py ; echo $LastExitCode return code is 0 , while rez env pylint -- pylint file.py ; echo $LastExitCode returns a non zero code. (You can use %errorlevel% in cmd).

Expected behavior
The return code should not be 0.

Actual behavior
The return code is always 0

Related Issues/PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions