From 30f2600dcf143baaff845570086b8498c01e29ee Mon Sep 17 00:00:00 2001 From: adrianvillin Date: Tue, 24 Oct 2023 12:53:10 +0200 Subject: tests: Added http static server tests. Coverage increased from 21% to 80% Type: test Change-Id: Ic8ecc620cef738d7dbe4c259f58a373ac155a588 Signed-off-by: adrianvillin --- test/vpp_qemu_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/vpp_qemu_utils.py') diff --git a/test/vpp_qemu_utils.py b/test/vpp_qemu_utils.py index cb1a0dd9f4c..e7e21a01b73 100644 --- a/test/vpp_qemu_utils.py +++ b/test/vpp_qemu_utils.py @@ -6,11 +6,10 @@ import subprocess import sys -def can_create_namespaces(): +def can_create_namespaces(namespace="vpp_chk_4212"): """Check if the environment allows creating the namespaces""" try: - namespace = "vpp_chk_4212" result = subprocess.run(["ip", "netns", "add", namespace], capture_output=True) if result.returncode != 0: return False @@ -18,7 +17,7 @@ def can_create_namespaces(): if result.returncode != 0: return False return True - except: + except Exception: return False -- cgit 1.2.3-korg