Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/system/005-info.bats
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RunRoot:
run_podman info --format=json

expr_nvr="[a-z0-9-]\\\+-[a-z0-9.]\\\+-[a-z0-9]\\\+\."
expr_path="/[a-z0-9\\\/.]\\\+\\\$"
expr_path="/[a-z0-9\\\-\\\/.]\\\+\\\$"
Copy link
Member

Choose a reason for hiding this comment

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

LGTM but just as a matter of readability (and I realize there is some difference of opinion about this) my eyes find it much easier to recognize dash-as-a-character when it's at the beginning or end of the character class:

   expr_path="/[a-z0-9\\\/.-]\\\+\\\$"       (with apologies for so many backslashes)

To me that makes it clear that the author explicitly meant the dash, and not a range. But I'm fine with this either way. Thanks for the fix.

Copy link
Contributor Author

@major major Jul 29, 2019

Choose a reason for hiding this comment

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

@edsantiago That's good to know. I'm happy to change it but I see a whole lot of checks running below. 😄

Copy link
Member

Choose a reason for hiding this comment

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

Yeah - don't annoy the CI gods. It's fine as it is, especially with all the backslashes to make it stand out. Thanks again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was counting my backslashes very carefully... 🤠


tests="
host.BuildahVersion | [0-9.]
Expand Down