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: skip test that use --tls-v1.x flags #24376

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: check more than the first flag option
  • Loading branch information
danbev committed Nov 15, 2018
commit 799805907d00e10ee01ce5f7c6dfc88efbc568f5
16 changes: 8 additions & 8 deletions test/testpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def GetCommand(self):
source = open(self.file).read()
flags_match = FLAGS_PATTERN.search(source)
if flags_match:
flag = flags_match.group(1).strip().split()
flags = flags_match.group(1).strip().split()
# The following block reads config.gypi to extract the v8_enable_inspector
# value. This is done to check if the inspector is disabled in which case
# the '--inspect' flag cannot be passed to the node process as it will
Expand All @@ -71,15 +71,15 @@ def GetCommand(self):
# inspector related tests). Also, if there is no ssl support the options
# '--use-bundled-ca' and '--use-openssl-ca' will also cause a similar
# failure so such tests are also skipped.
if ('--inspect' in flag[0] or \
'--use-bundled-ca' in flag[0] or \
'--use-openssl-ca' in flag[0] or \
'--tls-v1.0' in flag[0] or \
'--tls-v1.1' in flag[0]) and \
self.context.v8_enable_inspector == 0:
if ((any(flag.startswith('--inspect') for flag in flags) or
'--use-bundled-ca' in flags or
'--use-openssl-ca' in flags or
'--tls-v1.0' in flags or
'--tls-v1.1' in flags) and
danbev marked this conversation as resolved.
Show resolved Hide resolved
self.context.v8_enable_inspector == 0):
print('Skipping as node was configured --without-ssl')
else:
result += flag
result += flags
files_match = FILES_PATTERN.search(source);
additional_files = []
if files_match:
Expand Down