summaryrefslogtreecommitdiff
path: root/test/testpy/__init__.py
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-06-29 23:20:06 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-09-23 18:51:47 +0200
commit782620f03ffcaa5be9e84f8f15a638cb7c03e464 (patch)
treee1eef1626561518a5e8afd151281146a4706de9a /test/testpy/__init__.py
parenta8d2c9d7750f05ae78b6b6b8de3c3161c7f6270e (diff)
downloadandroid-node-v8-782620f03ffcaa5be9e84f8f15a638cb7c03e464.tar.gz
android-node-v8-782620f03ffcaa5be9e84f8f15a638cb7c03e464.tar.bz2
android-node-v8-782620f03ffcaa5be9e84f8f15a638cb7c03e464.zip
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/__init__.py')
-rw-r--r--test/testpy/__init__.py5
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: