Repository navigation
Let eight console tests run on a Windows host - #438
Merged
Merged
Conversation
The first-send tests cover the Stata CLI terminal but never pinned the platform, so on Windows they got the console pane. Three tests use a symlink, a shell script and POSIX mode bits, and one pipes to a Stata that the Windows console refuses by design. Pin the platform for the first, and skip or narrow the others on Windows. Nothing changes on macOS or Linux.
Contributor
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 50 minutes. View limit details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eight console tests fail on a Windows host and pass on macOS and Linux. All eight are assumptions in the tests; none shows a fault in the product. No product code changes.
linux, as the other blocks in the file pin theirs.locate_stata > skips a dangling symlinkEPERM).History > persists entries with private permissions…0o666.run_console > runs Stata directly when not attached to a terminal#!/bin/shscript.sight console under Node > passes piped input straight to Stata--stataby design and exits 2.The pane's behaviour on local Windows has its own test block, which already passes on Windows.
Proof
check:line-endings,typecheck,lintandbun test ./testspass.send-to-stata-integrated-terminal72 pass, 0 fail (was 68 pass, 4 fail);setup15 pass, 2 skip, 0 fail (was 14 pass, 3 fail);console-pty10 skip, 0 fail (was 9 skip, 1 fail).