diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2016-06-29 23:20:06 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2016-09-23 18:51:47 +0200 |
commit | 782620f03ffcaa5be9e84f8f15a638cb7c03e464 (patch) | |
tree | e1eef1626561518a5e8afd151281146a4706de9a /test/testpy | |
parent | a8d2c9d7750f05ae78b6b6b8de3c3161c7f6270e (diff) | |
download | node-new-782620f03ffcaa5be9e84f8f15a638cb7c03e464.tar.gz |
src: add /json/protocol endpoint to inspector
Embed the compressed and minified protocol.json from the bundled
v8_inspector and make it available through the /json/protocol endpoint.
Refs: https://github.com/nodejs/diagnostics/issues/52
PR-URL: https://github.com/nodejs/node/pull/7491
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/testpy')
-rw-r--r-- | test/testpy/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testpy/__init__.py b/test/testpy/__init__.py index 9fff0b969c..367346f6e1 100644 --- a/test/testpy/__init__.py +++ b/test/testpy/__init__.py @@ -61,7 +61,10 @@ class SimpleTestCase(test.TestCase): source = open(self.file).read() flags_match = FLAGS_PATTERN.search(source) if flags_match: - result += flags_match.group(1).strip().split() + # PORT should match the definition in test/common.js. + env = { 'PORT': int(os.getenv('NODE_COMMON_PORT', '12346')) } + env['PORT'] += self.thread_id * 100 + result += flags_match.group(1).strip().format(**env).split() files_match = FILES_PATTERN.search(source); additional_files = [] if files_match: |