Skip to content

Commit

Permalink
Modify version checking
Browse files Browse the repository at this point in the history
Signed-off-by: Maarit Härkönen <[email protected]>
  • Loading branch information
maaharko committed Oct 24, 2024
1 parent 329f323 commit f1e1d15
Showing 1 changed file with 3 additions and 5 deletions.
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

0 comments on commit f1e1d15

Please sign in to comment.