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

[Gecko Bug 1499889] Make sure we don't try to remove device forwards that no longer exist #13627

Merged
merged 1 commit into from
Oct 22, 2018

Conversation

moz-wptsync-bot
Copy link
Collaborator

The stop() function is apparently being called multiple times at the end of a test run, causing us to sometimes attempt to remove device forwards that were removed in an earlier stop() attempt but before the conditions checked in stop() to remove the device forwards get changed. This caused a traceback to be printed out at the end of every test run, complaining about attempts to remove device forwards that don't exist.

Rather than dig through to figure out why/where stop() is getting called twice, this patch just papers over the issue by making sure there is at least one device forward still listed before attempting to remove them.

Differential Revision: https://phabricator.services.mozilla.com/D9175

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1499889
gecko-commit: 6ff410edad90dbc51d72aeb722d0ff8d182606c1
gecko-integration-branch: autoland
gecko-reviewers: gbrown

The stop() function is apparently being called multiple times at the end of a test run, causing us to sometimes attempt to remove device forwards that were removed in an earlier stop() attempt but before the conditions checked in stop() to remove the device forwards get changed. This caused a traceback to be printed out at the end of every test run, complaining about attempts to remove device forwards that don't exist.

Rather than dig through to figure out why/where stop() is getting called twice, this patch just papers over the issue by making sure there is at least one device forward still listed before attempting to remove them.

Differential Revision: https://phabricator.services.mozilla.com/D9175

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1499889
gecko-commit: 6ff410edad90dbc51d72aeb722d0ff8d182606c1
gecko-integration-branch: autoland
gecko-reviewers: gbrown
@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Oct 19, 2018
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

Already reviewed downstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra mozilla:gecko-sync wptrunner The automated test runner, commonly called through ./wpt run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants