Files
swupd-client/test/functional/checkupdate/chk-update-version-match.bats
Otavio Pontes 41ac4f76f3 check_update: Unify check_update and update -s
Update --status is now calling code on check_update.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2019-05-14 15:51:47 -07:00

19 lines
344 B
Bash
Executable File

#!/usr/bin/env bats
load "../testlib"
@test "CHK002: Check for available updates when we are at latest" {
run sudo sh -c "$SWUPD check-update $SWUPD_OPTS"
assert_status_is 1
expected_output=$(cat <<-EOM
Current OS version: 10
Latest server version: 10
There are no updates available
EOM
)
assert_is_output "$expected_output"
}