From 0f931f273a4df4c3d9c0173d88b1990c3b483f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Th=C3=A9bault?= Date: Tue, 19 Nov 2024 15:04:44 +0900 Subject: [PATCH] update 0004_start_test.py - use re for bridge search --- tests/functional_tests/0004_start_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional_tests/0004_start_test.py b/tests/functional_tests/0004_start_test.py index 55aa7676..c373497a 100644 --- a/tests/functional_tests/0004_start_test.py +++ b/tests/functional_tests/0004_start_test.py @@ -26,6 +26,7 @@ import inspect import tempfile import os +import re require_root = pytest.mark.require_root @@ -97,7 +98,7 @@ def test_03_create_and_start_nobridge_vnet_jail(release, jail, invoke_cli, nobri stdout, stderr = jail.run_command(['ifconfig'], jailed=False) assert bool(stderr) is False, f'Ifconfig returned an error: {stderr}' - assert 'bridge' not in stdout, 'Unexpected bridge was created.' + assert re.search(r'bridge[0-9]', stdout) is None, 'Unexpected bridge was created.' assert f'fe80::1%vnet0.{jail.jid}:' in stdout assert f'description: associated with jail: {jail.name} as nic: epair0b'