Skip to content

Conversation

@danbev
Copy link
Contributor

@danbevdanbev commented Jul 4, 2017

Currently this test fail when configured --without-inspector or
--without-ssl as it is expected to fail but the skipIfInspectorDisabled
check will exit as if the test was successful.

This commit checks if inspector support is available and fails the test
allowing the test to be skipped.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test, tools

@nodejs-github-botnodejs-github-bot added test Issues and PRs related to the tests. tools Issues and PRs related to the tools directory. labels Jul 4, 2017
@cjihrig
Copy link
Contributor

Because this is a known_issue test, another approach is to fail instead of skip when the inspector is not available. A similar example can be seen here.

@refack
Copy link
Contributor

FWIW alternatively you could simply add if (process.config.variables.v8_enable_inspector === 0) process.exit(1) and a nice comment

@refack
Copy link
Contributor

As for this PR's change, it's a bit too generic. If you want to pursue such a change, I'd rather have a special flag in the test (something like --inspector --or-fail)

@danbev
Copy link
ContributorAuthor

Because this is a known_issue test, another approach is to fail instead of skip when the inspector is not available. A similar example can be seen here.

Ah great, that would be much simpler. Thanks, I'll update the PR.

Currently this test fail when configured --without-inspector or --without-ssl as it is expected to fail but the skipIfInspectorDisabled check will exit as if the test was sucessful. This commit checks if inspector support is available and fails the test allowing the test to be skipped.
@danbevdanbevforce-pushed the hasfailed-removedflags-check branch from c28f46e to 2d0d934CompareJuly 5, 2017 04:09
@danbevdanbev changed the title test: add removedFlags to test.pytest: check and fail inspector-cluster-port-clashJul 5, 2017
@danbev
Copy link
ContributorAuthor

if(process.config.variables.v8_enable_inspector===0){
// When the V8 inspector is disabled, using either --without-inspector or
// --without-ssl, this test will not fail which it is expected to do.
// The following fail will allow this test to be skipped by failing it.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add something to this comment about replacing this block with common.skipIfInspectorDisabled() when/if this test is moved out of known_issues.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good idea, I'll add a comment about that.

danbev added a commit to danbev/node that referenced this pull request Jul 6, 2017
Currently this test fail when configured --without-inspector or --without-ssl as it is expected to fail but the skipIfInspectorDisabled check will exit as if the test was sucessful. This commit checks if inspector support is available and fails the test allowing the test to be skipped. PR-URL: nodejs#14074 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@danbev
Copy link
ContributorAuthor

Landed in f651e40.

@cjihrig@refack Thanks!

@danbevdanbev closed this Jul 6, 2017
@danbevdanbev deleted the hasfailed-removedflags-check branch July 6, 2017 12:10
addaleax pushed a commit that referenced this pull request Jul 11, 2017
Currently this test fail when configured --without-inspector or --without-ssl as it is expected to fail but the skipIfInspectorDisabled check will exit as if the test was sucessful. This commit checks if inspector support is available and fails the test allowing the test to be skipped. PR-URL: #14074 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@addaleaxaddaleax mentioned this pull request Jul 11, 2017
addaleax pushed a commit that referenced this pull request Jul 18, 2017
Currently this test fail when configured --without-inspector or --without-ssl as it is expected to fail but the skipIfInspectorDisabled check will exit as if the test was sucessful. This commit checks if inspector support is available and fails the test allowing the test to be skipped. PR-URL: #14074 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Fishrock123 pushed a commit that referenced this pull request Jul 19, 2017
Currently this test fail when configured --without-inspector or --without-ssl as it is expected to fail but the skipIfInspectorDisabled check will exit as if the test was sucessful. This commit checks if inspector support is available and fails the test allowing the test to be skipped. PR-URL: #14074 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testIssues and PRs related to the tests.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@danbev@cjihrig@refack@MylesBorins@nodejs-github-bot