-
Notifications
You must be signed in to change notification settings - Fork 77
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
cmd/testscript: work directory printed twice #170
Comments
This is one of the most wonderfully meta bug reports in the use of The challenge for However, this leads to the next problem: When it comes to running According to my testing there is a bug however in that only the first temporary directory is retained; the second should also be retained, because that's the more interesting of the two. Which leads to another thought: I think the printing of the first temporary directory is actually redundant. The fact we have to "swing" the input files via a temporary directory in order to run So I think I'd support a change that:
|
Thanks for the reply! You're quite right to emphasise that the problem users care about is not the double printing, but the fact that the Happy to work on a PR along your suggested lines, unless you prefer to reserve this enjoyment to yourself. |
Very happy for you to take this, thanks for checking! |
I came here to file an Issue about |
I think this issue can be used for the aspects described above, so a PR is probably the next step. |
I noticed something unexpected when using the standalone
testscript
tool:It prints out two working directories, with only the first one actually being preserved. I think this is because
testscript -work
not only prints the working directory itself, but also creates a test runner withtestWork: true
, which causes the runner to print it, too. Is this intended? For a single script, I would have expected to see just one working directory.Repro:
The text was updated successfully, but these errors were encountered: