Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,4 @@ jobs:
env:
MATRIX_RUN: ${{ matrix.run }}
MATRIX_LIBC: ${{ matrix.libc }}
TERM: xterm
25 changes: 14 additions & 11 deletions src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2237,17 +2237,20 @@ fn verify_distribution_behavior(dist_path: &Path) -> Result<Vec<String>> {
std::fs::write(&test_file, PYTHON_VERIFICATIONS.as_bytes())?;

eprintln!(" running interpreter tests (output should follow)");
let output = duct::cmd(&python_exe, [test_file.display().to_string()])
.stdout_to_stderr()
.unchecked()
.env("TARGET_TRIPLE", &python_json.target_triple)
.env("BUILD_OPTIONS", &python_json.build_options)
.run()
.context(format!(
"Failed to run `{} {}`",
python_exe.display(),
test_file.display()
))?;
let output = duct::cmd(
&python_exe,
[test_file.display().to_string(), "-v".to_string()],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we revert the -v change or no?

)
.stdout_to_stderr()
.unchecked()
.env("TARGET_TRIPLE", &python_json.target_triple)
.env("BUILD_OPTIONS", &python_json.build_options)
.run()
.context(format!(
"Failed to run `{} {}`",
python_exe.display(),
test_file.display()
))?;

if !output.status.success() {
errors.push("errors running interpreter tests".to_string());
Expand Down