From 4931a30fca67d96988257975ab89d633c9baeb0a Mon Sep 17 00:00:00 2001 From: Martyn Welch <martyn.welch@collabora.com> Date: Wed, 3 Apr 2019 14:30:18 +0100 Subject: [PATCH] Correct parsing of test result The regex for parsing the test result is incorrect, leading to the test reporting a pass rather than a fail as it should be. Change the regex to make it report the correct result. Signed-off-by: Martyn Welch <martyn.welch@collabora.com> --- test-cases/iptables-basic.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-cases/iptables-basic.yaml b/test-cases/iptables-basic.yaml index 667e895..c02b617 100644 --- a/test-cases/iptables-basic.yaml +++ b/test-cases/iptables-basic.yaml @@ -44,4 +44,4 @@ run: - common/run-test-in-systemd --timeout=900 --name=run-test env DEBUG=2 ./run-test.sh parse: - pattern: ^(?P<test_case_id>[a-zA-Z0-9_\-\./]+):\s*(?P<result>pass|fail|skip|unknown)$ + pattern: "(?P<test_case_id>.*_*):\\s+(?P<result>(pass|fail|skip))" -- GitLab