-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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.ipv6: port to python #74758
Conversation
nixos/tests/ipv6.nix
Outdated
f"[ `ip -o -6 addr show dev {iface} scope {scope} | grep -v tentative | wc -l` -ge 1 ]" | ||
) | ||
output = machine.succeed(f"ip -o -6 addr show dev {iface} scope {scope}") | ||
ip = re.split(r"[ /]+", output)[3] |
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.
wouldn't it be more direct and stable to match out the group of the subtext that looks like an ip (four numbers separated by dots)?
292c9c4
to
55c79bf
Compare
I've changed the test according to suggestions but noticed it randomly failing. It's possible that I broke it during the conversion, looking into this ... |
55c79bf
to
d65ffa3
Compare
wait_for_address sometimes returned tentative address.
d65ffa3
to
6ebf84a
Compare
The problem was in the original test which sometimes ended up using tentative address. Should be fixed now, PTAL. |
@ofborg test ipv6 |
Motivation for this change
#72828
Things done
sandbox
innix.conf
on non-NixOS linux)