Browse Source

tools: print stderr on bad test.py `vmArch` check

This makes it so you can see why the check fails if it does.

Typically that sort of thing can happen if you are modifying
bootstrapping or `process`.

PR-URL: https://github.com/nodejs/node/pull/6786
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
v7.x
Jeremiah Senkpiel 9 years ago
parent
commit
4babe656b4
  1. 1
      tools/test.py

1
tools/test.py

@ -1541,6 +1541,7 @@ def Main():
vmArch = archEngineContext.stdout.rstrip() vmArch = archEngineContext.stdout.rstrip()
if archEngineContext.exit_code is not 0 or vmArch == "undefined": if archEngineContext.exit_code is not 0 or vmArch == "undefined":
print "Can't determine the arch of: '%s'" % vm print "Can't determine the arch of: '%s'" % vm
print archEngineContext.stderr.rstrip()
continue continue
env = { env = {
'mode': mode, 'mode': mode,

Loading…
Cancel
Save