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

Partially sync normalize_output to upstream, for $TEST_BUILD_DIR support. #241

Merged
merged 1 commit into from Mar 21, 2021

Conversation

eddyb
Copy link
Contributor

@eddyb eddyb commented Mar 20, 2021

I've effectively copied this part of the upstream compiletest: https://github.com/rust-lang/rust/blob/41b315a470d583f6446599984ff9ad3bd61012b2/src/tools/compiletest/src/runtest.rs#L3581-L3626

But only kept these path normalizations:

  • $DIR
  • $TEST_BUILD_DIR

Upstream also has these, that I removed (as they only make sense in the context of building Rust itself):

  • $SRC_DIR = ${config.src_base}/../../../library (where ../../.. strips e.g. src/test/ui)
  • $BUILD_DIR = $TEST_BUILD_DIR/../../.. (where ../../.. strips e.g. x86_64-unknown-linux-gnu/test/ui)
  • $LIB_DIR = $BUILD_DIR/../lib (where .. strips build, but AFAICT top-level lib never existed?!)

EDIT: made this into a draft because something is missing for windows support - see this CI failure.
EDIT2: false alarm, it was caused by diagnostics printing paths with {:?}, which causes \\ on windows.

@eddyb eddyb marked this pull request as draft March 20, 2021 19:15
@eddyb eddyb changed the title Partially sync normalize_output to upstream, for $TEST_BUILD_DIR support. [WIP] Partially sync normalize_output to upstream, for $TEST_BUILD_DIR support. Mar 20, 2021
@eddyb eddyb changed the title [WIP] Partially sync normalize_output to upstream, for $TEST_BUILD_DIR support. Partially sync normalize_output to upstream, for $TEST_BUILD_DIR support. Mar 20, 2021
@eddyb eddyb marked this pull request as ready for review March 20, 2021 22:27
Copy link
Collaborator

@Munksgaard Munksgaard left a comment

Choose a reason for hiding this comment

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

Looks reasonable. The CI error is unrelated, I think.

@Munksgaard Munksgaard merged commit 9257f6d into Manishearth:master Mar 21, 2021
@eddyb eddyb deleted the test-build-dir branch March 21, 2021 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants