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

nixos/tests: Ignore shutdown/crash if not booted #72899

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Nov 6, 2019

Motivation for this change

Condition seems to be inverted. Crash and shutdown only make sense, when
the machine is booted; i.e. we return immediately otherwise.
In the Perl test driver this is:

    return unless $self->{booted};

I hope that the ported tests get properly reviewed, as not to cause to many false positives and failing tests.

cc #72828 @tfc @flokli @jonringer

Condition seems to be inverted. Crash and shutdown only make sense, when
the machine is booted; i.e. we return immediately otherwise.
In the Perl test driver this is:

    return unless $self->{booted};
@ofborg ofborg bot added the 6.topic: nixos label Nov 6, 2019
@tfc
Copy link
Contributor

tfc commented Nov 6, 2019

whoa, good catch! Thx for fixing it!

@worldofpeace worldofpeace merged commit 0923ffb into NixOS:master Nov 6, 2019
@JohnAZoidberg JohnAZoidberg deleted the fix-py-test-driver-crash branch November 6, 2019 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants