From e81395024f280e92a99343d778b9ce7fb97276fb Mon Sep 17 00:00:00 2001 From: Simon Kobyda Date: Wed, 6 Sep 2023 17:27:18 +0200 Subject: [PATCH 1/2] test: Remove unecessary escaping in link-patterns --- test/common/link-patterns.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/common/link-patterns.json b/test/common/link-patterns.json index b20f7295d9ec..91eff90ffd03 100644 --- a/test/common/link-patterns.json +++ b/test/common/link-patterns.json @@ -1,29 +1,29 @@ [ { "label": "screenshot", - "pattern": "Wrote screenshot to ([A-Za-z0-9\\-\\.]+\\.png)$", + "pattern": "Wrote screenshot to ([A-Za-z0-9.-]+.png)$", "url": "$1", "icon": "bi bi-camera-fill" }, { "label": "new pixels", - "pattern": "New pixel test reference ([A-Za-z0-9\\-\\.]+\\.png)$", + "pattern": "New pixel test reference ([A-Za-z0-9.-]+.png)$", "url": "$1" }, { "label": "journal", - "pattern": "Journal extracted to ([A-Za-z0-9\\-\\.]+\\.log(?:\\.[gx]z)?)$", + "pattern": "Journal extracted to ([A-Za-z0-9.-]+.log(?:.[gx]z)?)$", "url": "$1", "icon": "bi bi-card-text" }, { "label": "changed pixels", - "pattern": "Differences in pixel test ([A-Za-z0-9\\-\\.]+)$", + "pattern": "Differences in pixel test ([A-Za-z0-9.-]+)$", "url": "pixeldiff.html#$1" }, { "label": "coverage", - "pattern": "Code coverage report in ([A-Za-z0-9\\-\\.]+)$", + "pattern": "Code coverage report in ([A-Za-z0-9.-]+)$", "url": "$1/" } ] From b085e1fcc1294dda1bad5636bf9a058f8d036710 Mon Sep 17 00:00:00 2001 From: Simon Kobyda Date: Wed, 6 Sep 2023 11:15:27 +0200 Subject: [PATCH 2/2] test: Add VM's XML and VM's log into link-patterns Capturing VM's xml and logs was implemented in [1], now it's time to also include the in our link-patterns. [1] https://github.com/cockpit-project/cockpit-machines/pull/1158 --- test/common/link-patterns.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/common/link-patterns.json b/test/common/link-patterns.json index 91eff90ffd03..cef6c78ef3ca 100644 --- a/test/common/link-patterns.json +++ b/test/common/link-patterns.json @@ -25,5 +25,15 @@ "label": "coverage", "pattern": "Code coverage report in ([A-Za-z0-9.-]+)$", "url": "$1/" + }, + { + "label": "vm xml", + "pattern": "Wrote ([A-Za-z0-9.-]+) XML to ([A-Za-z0-9.-]+.xml)$", + "url": "$2" + }, + { + "label": "vm log", + "pattern": "Wrote ([A-Za-z0-9.-]+) log to ([A-Za-z0-9.-]+.log)$", + "url": "$2" } ]