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

test: more robust check for location of node.exe #12120

Closed
wants to merge 1 commit into from

Conversation

refack
Copy link
Contributor

@refack refack commented Mar 29, 2017

Checklist
  • vcbuild test (Windows) passes
  • commit message follows [commit guidelines][]
Affected core subsystem(s)

windows, test

@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Mar 29, 2017
@refack
Copy link
Contributor Author

refack commented Mar 29, 2017

I'm compiling for windows & ubuntu on the same dir so I have out/Release directory, but the exe is obviously not there. (will also happen when mix-compiling with ninja and MSVS)

@bnoordhuis
Copy link
Member

Can you update the commit log to explain how it's more robust? It's not immediately evident from looking at the diff.

@refack
Copy link
Contributor Author

refack commented Mar 29, 2017

@bnoordhuis updated. Also added explicit error.

Copy link
Member

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

LGTM, I think, modulo comment.

tools/test.py Outdated
name = os.path.abspath(name + '.exe')

if not exists(name):
raise ValueError("Could not find executable")
Copy link
Member

Choose a reason for hiding this comment

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

Can you include name in the message and use single quotes?

look for the actual produced `exe` not just the directory
@mscdex mscdex added the windows Issues and PRs related to the Windows platform. label Mar 29, 2017
@gibfahn
Copy link
Member

gibfahn commented Mar 31, 2017

cc/ @nodejs/platform-windows

@jasnell
Copy link
Member

jasnell commented Apr 4, 2017

jasnell pushed a commit that referenced this pull request Apr 4, 2017
look for the actual produced `exe` not just the directory

PR-URL: #12120
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
@jasnell
Copy link
Member

jasnell commented Apr 4, 2017

Landed in 394b6ac

@jasnell jasnell closed this Apr 4, 2017
@refack
Copy link
Contributor Author

refack commented Apr 4, 2017

Yeah broke the slump ;)

@jasnell jasnell mentioned this pull request Apr 4, 2017
@refack refack deleted the patch-1 branch April 4, 2017 21:33
italoacasas pushed a commit to italoacasas/node that referenced this pull request Apr 10, 2017
look for the actual produced `exe` not just the directory

PR-URL: nodejs#12120
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
@italoacasas italoacasas mentioned this pull request Apr 10, 2017
2 tasks
MylesBorins pushed a commit that referenced this pull request Apr 18, 2017
look for the actual produced `exe` not just the directory

PR-URL: #12120
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
MylesBorins pushed a commit that referenced this pull request Apr 19, 2017
look for the actual produced `exe` not just the directory

PR-URL: #12120
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Apr 19, 2017
andrew749 pushed a commit to michielbaird/node that referenced this pull request Jul 19, 2017
look for the actual produced `exe` not just the directory

PR-URL: nodejs/node#12120
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants