GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — tools,makefile: fix file open mode and cleanup tap file by thefourtheye · Pull Request #2837 · nodejs/node Conversation
Contributor
1st commit: By default the logfile is opened in append mode. This commit makes sure 2nd commit: Make Fixes: #2834 cc @nodejs/build
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
|
LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
...with a teeny nit about the commit logs: s/Open/open/ and s/Makefile/build/ for consistency. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
By default the logfile is opened in append mode. This commit makes sure that the file is opened in write-binary mode, so that the file will be created if it doesn't exist or overwrite if it exists. Fixes: nodejs#2834
Make `make clean` cleanup the generated tap file as well. Fixes: nodejs#2834
f933250 to
89d5237
Compare
|
lgtm, thanks for doing this @thefourtheye |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I wonder: does appending to a .tap file ever make sense? If not, it would be better to have the test runner delete the file (instead of make test-ci). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@orangemocha If test-runner deletes the file, then we will not get to see the TAP results, right? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Maybe delete before running the tests? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@evanlucas This patch does something similar. Opens the file in write mode, which truncates the file if it exists. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@thefourtheye : sorry, I didn't catch that before. Your first commit already does what I was suggesting :) LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
By default the logfile is opened in append mode. This commit makes sure that the file is opened in write-binary mode, so that the file will be created if it doesn't exist or overwrite if it exists. Fixes: #2834 PR-URL: #2837 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Alexis Campailla <[email protected]>
Make `make clean` cleanup the generated tap file as well. Fixes: #2834 PR-URL: #2837 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Alexis Campailla <[email protected]>
Sorry, something went wrong.
There was an error while loading. Please reload this page.
By default the logfile is opened in append mode. This commit makes sure that the file is opened in write-binary mode, so that the file will be created if it doesn't exist or overwrite if it exists. Fixes: #2834 PR-URL: #2837 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Alexis Campailla <[email protected]>
Make `make clean` cleanup the generated tap file as well. Fixes: #2834 PR-URL: #2837 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Alexis Campailla <[email protected]>
|
@thefourtheye I'm just noticing that these two commits made it in with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@rvagg Ah, sorry about that. I just used that GitHub format. I'll keep it in mind for the next time. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@thefourtheye downside being very hard to click in terminal :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
By default the logfile is opened in append mode. This commit makes sure that the file is opened in write-binary mode, so that the file will be created if it doesn't exist or overwrite if it exists. Fixes: #2834 PR-URL: #2837 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Alexis Campailla <[email protected]>
Make `make clean` cleanup the generated tap file as well. Fixes: #2834 PR-URL: #2837 Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Alexis Campailla <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.