test/system: Be more strict when checking the version

https://github.com/containers/toolbox/pull/1165
This commit is contained in:
Debarshi Ray 2022-11-17 10:50:43 +01:00
parent fe63222916
commit 685f1f794d

View file

@ -9,7 +9,10 @@ setup() {
}
@test "version: Check version using option --version" {
run $TOOLBOX --version
run --separate-stderr $TOOLBOX --version
assert_success
assert_output --regexp '^toolbox version [0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?$'
assert [ ${#lines[@]} -eq 1 ]
assert [ ${#stderr_lines[@]} -eq 0 ]
}