-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
Fix virtualType for network-interfaces-scripted #34442
Conversation
"The list of virtual interfaces does not match the expected one:\n", | ||
"Result:\n", "$list\n", | ||
"Expected:\n", "$targetList\n" | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would simplify the check to not depend on the output of ip:
$machine->succeed("ip link show tap0");
$machine->succeed("ip link show tun0");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ways it also checks the type and owner of the interface are set correctly.
@GrahamcOfBorg test tests.networking.scripted.virtual |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
@GrahamcOfBorg test networking.scripted.virtual |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Woops, I forgot to squash the last commit. |
Motivation for this change
Fix bug in #34258 and add a test ot prevent it
Things done
nixos/tests/networking.nix