diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index cc0c7e7ff4c1..ad82fb2da7f4 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -309,7 +309,11 @@ let "echo 'Could not get IPv4 address for ${name}!' >&2; " "exit 1" ) - ).strip() + ) + + ip = ip + '\n' + ip = ip[:ip.find('\n')] + return ip