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

Modify version checking #157

Merged
merged 1 commit into from
Oct 24, 2024
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
8 changes: 3 additions & 5 deletions Robot-Framework/resources/ssh_keywords.resource
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ Check file doesn't exist

Verify Ghaf Version Format
[Documentation] Check that ghaf-version contains version number in the format:"dd.dd"
${major} ${minor} Get Ghaf Version
Should Match Regexp ${major} ^\\d{2}$
Should Match Regexp ${minor} ^\\d{2}$
${version} Get Ghaf Version
Should Match Regexp ${version} \\d{2}.\\d{2}.?\\d{0,2}\$

Verify Nixos Version Format
[Documentation] Check that nixos-version contains version number in the format:"dd.dd",
Expand All @@ -279,8 +278,7 @@ Get Ghaf Version
${output} ${rc} Execute Command ghaf-version return_rc=True
Should Be Equal As Integers ${rc} 0 Couldn't get ghaf version, command return code
Log To Console ghaf-version: ${output}
${major} ${minor} Parse Ghaf Version ${output}
RETURN ${major} ${minor}
RETURN ${output}

Get Nixos Version
[Documentation] Get version of NixOS, Example:
Expand Down
Loading