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

Use internal build version for release SWIs #26

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

kennylau-arista
Copy link
Contributor

Software image version for release SWIs only contains the version and not the changenum.

Software image version for release SWIs only contains the version and not the
changenum.
@@ -163,7 +163,14 @@ def _os_version(request):
ssh = request.getfixturevalue(f"{name}_ssh")
assert ssh.cli_flavor in {"eos", "mos"}
output = ssh.sendcmd("show version", timeout=300)
matcher = re.search(r"Software image version: (\S*)", output)
if ssh.cli_flavor == "mos":
matcher = re.search(r"Software image version: (\S*)", output)
Copy link
Collaborator

Choose a reason for hiding this comment

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

matcher sounds like a compiled regex. Can we call it match instead?

@kennylau-arista kennylau-arista merged commit f7625ca into main Oct 25, 2023
6 checks passed
@kennylau-arista kennylau-arista deleted the fix-os-version-for-release-swis branch October 25, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants