Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary suite exit code on windows #1892

Open
pcharmoille opened this issue Dec 12, 2024 · 0 comments · May be fixed by #1893
Open

Binary suite exit code on windows #1892

pcharmoille opened this issue Dec 12, 2024 · 0 comments · May be fixed by #1893
Labels

Comments

@pcharmoille
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant