From efd21c45200b44dea477155f533e296ae734834d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lima?= Date: Thu, 30 Apr 2026 04:06:18 +0100 Subject: [PATCH] nixos/tests/virtualbox: fix net-hostonlyif test --- nixos/tests/virtualbox.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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