Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add VM's XML and VM's log into link-patterns #19289

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

skobyda
Copy link
Contributor

@skobyda skobyda commented Sep 6, 2023

Capturing VM's xml and logs was implemented in [1], now it's time to also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158

@skobyda skobyda marked this pull request as ready for review September 6, 2023 12:02
@skobyda
Copy link
Contributor Author

skobyda commented Sep 6, 2023

Seems to work:
image

@martinpitt
Copy link
Member

test/common/link-patterns.json: Invalid \escape: line 31 column 74 (char 882)

@martinpitt martinpitt added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Sep 6, 2023
},
{
"label": "vm xml",
"pattern": "Wrote ([A-Za-z0-9\\.\\-]+) XML to ([A-Za-z0-9\\.\\-]+\.xml)$",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a raw string here; the other patterns ought to do that as well, to avoid the ugly double \\.

@@ -1,29 +1,29 @@
[
{
"label": "screenshot",
"pattern": "Wrote screenshot to ([A-Za-z0-9\\-\\.]+\\.png)$",
"pattern": `Wrote screenshot to ([A-Za-z0-9\-\.]+\.png)$",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I originally thought that was python -- too hard to pay full attention on the sprint. Of course this is json, there is no such thing as a raw string.

Capturing VM's xml and logs was implemented in [1], now it's time to
also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers!

@martinpitt martinpitt merged commit 280d74e into cockpit-project:main Sep 6, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants