mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge #35169: nixos/tests: fix ipv6 test failure
This commit is contained in:
commit
8b1cf100cd
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||
# Detection).
|
||||
sub waitForAddress {
|
||||
my ($machine, $iface, $scope) = @_;
|
||||
$machine->waitUntilSucceeds("[ `ip -o -6 addr show dev $iface scope $scope | grep -v tentative | wc -l` -eq 1 ]");
|
||||
$machine->waitUntilSucceeds("[ `ip -o -6 addr show dev $iface scope $scope | grep -v tentative | wc -l` -ge 1 ]");
|
||||
my $ip = (split /[ \/]+/, $machine->succeed("ip -o -6 addr show dev $iface scope $scope"))[3];
|
||||
$machine->log("$scope address on $iface is $ip");
|
||||
return $ip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue