-
Notifications
You must be signed in to change notification settings - Fork 789
[SYCL][E2E] Redirect output to /dev/null
instead of stdout
#18937
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ensures that the compiler output is redirected appropriately to avoid generating an unwanted binary file named "-" by replacing the "-" parameter with the platform‐specific os.devnull.
- Changed the compiler command line argument for the "-o" flag from "-" to f"{os.devnull}".
- Removed the explicit stdout=subprocess.DEVNULL parameter from subprocess.Popen calls.
@@ -426,10 +425,9 @@ def open_check_file(file_name): | |||
"c++", | |||
"-", | |||
"-o", | |||
"-", | |||
f"{os.devnull}", | |||
], | |||
stdin=subprocess.PIPE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redirecting the compiler output consistently by specifying os.devnull helps maintain uniform behavior; ensure that any potential stdout output is handled as intended without the removed stdout=subprocess.DEVNULL parameter.
stdin=subprocess.PIPE, | |
stdin=subprocess.PIPE, | |
stdout=subprocess.DEVNULL, |
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Jenkins failure is unrelated and an infra issue. |
Redirecting output to stdout is not working and LIT is instead creating a binary file named
-
.Thus, redirecting output to
/dev/null
. os.devnull equals/dev/null
on POSIX and 'null' on Windows