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

nixosTests.networking: disable virtual test with networkd #81013

Closed
wants to merge 1 commit into from

Conversation

rnhmjoj
Copy link
Contributor

@rnhmjoj rnhmjoj commented Feb 25, 2020

Motivation for this change

ZHF: #80379

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via nixosTests.networking.networkd.virtual nixosTests.networking.scripted.virtual
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

I don't know how to disable the build of a test. This will effectively silence the failure but the test will be built anyway, which is probably misleading.

testScript = ''
# The test is disabled for systemd-networkd.
# See the commit message of a3a441c.
testScript = optionalString (!networkd) ''
Copy link
Member

Choose a reason for hiding this comment

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

This sounds like the wrong place to do this. Shouldn't that be done in line 449 and just set to null in case of networkd?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried setting the attrset to null or { } but it doesn't work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ping. I'd like to fix this before the final release of 20.03

@rnhmjoj rnhmjoj closed this Apr 7, 2020
@rnhmjoj rnhmjoj deleted the virtual branch April 7, 2020 12:41
@rnhmjoj rnhmjoj restored the virtual branch April 7, 2020 12:46
@rnhmjoj rnhmjoj reopened this Apr 7, 2020
@rnhmjoj rnhmjoj marked this pull request as ready for review April 13, 2020 10:38
@flokli flokli self-assigned this Apr 13, 2020
@flokli
Copy link
Contributor

flokli commented Apr 13, 2020

Can you take a look at #85170, which keeps running the test with networkd?

@rnhmjoj rnhmjoj closed this Apr 14, 2020
@rnhmjoj rnhmjoj deleted the virtual branch June 19, 2020 08:11
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.

None yet

3 participants