mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-05 21:21:49 +00:00
Update --status is now calling code on check_update. Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
19 lines
344 B
Bash
Executable File
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"
|
|
|
|
}
|