Skip to content

[Build System] Remove the use of sub-shells when running test targets #20025

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

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

Rostepher
Copy link
Contributor

@Rostepher Rostepher commented Oct 24, 2018

Removes the use of sub-shells when running the test targets in build-script-impl. We were generating a "dry-run" test command using Ninja's -n option and then executing it via /usr/env bash to avoid Ninja's output buffering when running lit in non-verbose mode. However, local testing shows the output test bar does not seem affected any longer.

As a result of this change we also needed to update the --test-paths option to pass the test paths through to CMake rather than appending them onto the test command. That worked before because the generated test command ended with the lit.py invocation (which seems very flimsy).

rdar://43165161
rdar://33714951

…oject in build-script-impl. The original reasoning seems to have been to disable Ninja's output buffering which was causing the lit progress bar to behave oddly, however local (parallel) testing does not show any peculiarities now.
@Rostepher Rostepher self-assigned this Oct 24, 2018
@Rostepher
Copy link
Contributor Author

@swift-ci please test

@Rostepher Rostepher merged commit c3a9498 into swiftlang:master Oct 25, 2018
@Rostepher Rostepher deleted the no-more-subshells branch October 25, 2018 22:11
davidungar pushed a commit to davidungar/swift that referenced this pull request Oct 26, 2018
…oject in build-script-impl. The original reasoning seems to have been to disable Ninja's output buffering which was causing the lit progress bar to behave oddly, however local (parallel) testing does not show any peculiarities now. (swiftlang#20025)
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.

2 participants