From bc782b68965b84f03f1d717a8ffa8eedc89599e6 Mon Sep 17 00:00:00 2001 From: ziajka Date: Mon, 16 Oct 2017 13:02:44 +0200 Subject: [PATCH] fix passing tests on Windows --- tests/compute/test_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/compute/test_manager.py b/tests/compute/test_manager.py index 8703c4c1..1cb85f81 100644 --- a/tests/compute/test_manager.py +++ b/tests/compute/test_manager.py @@ -286,7 +286,8 @@ def test_duplicate_vpcs(async_run, vpcs, project): destination_node = async_run(vpcs.create_node("PC-2", project.id, destination_node_id, console=2223)) async_run(vpcs.duplicate_node(source_node_id, destination_node_id)) with open(os.path.join(destination_node.working_dir, "startup.vpc")) as f: - assert f.read() == "set pcname PC-2\nip dhcp\n" + startup = f.read().strip() + assert startup == "set pcname PC-2\nip dhcp\n".strip() def test_duplicate_ethernet_switch(async_run, project):