Files
swupd-client/test/functional/update/update-minversion.bats
Otavio Pontes d2590a1b9e fullfile: Improve output of fullfile downloads
Print a "Validate downloaded files" message to separate 2 different progress bars
and improve the output when downloading extra fullfiles

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2019-10-18 09:27:25 -07:00

44 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bats
load "../testlib"
test_setup() {
create_test_environment "$TEST_NAME" 10
create_bundle -L -n bundle1 -v 10 -f /file1 "$TEST_NAME"
create_version "$TEST_NAME" 20 10 staging
set_as_minversion "$WEBDIR"/20
sudo rm -rf "$WEBDIR"/20/files/*
}
@test "UPD015: Skip fullfile download for unchanged file in minversion update" {
run sudo sh -c "$SWUPD update $SWUPD_OPTS"
assert_status_is 0
expected_output=$(cat <<-EOM
Update started
Preparing to update from 10 to 20
Downloading packs for:
- bundle1
- os-core
Finishing packs extraction...
Statistics for going from version 10 to version 20:
changed bundles : 2
new bundles : 0
deleted bundles : 0
changed files : 4
new files : 0
deleted files : 0
Validate downloaded files
Installing files...
Update was applied
Calling post-update helper scripts
Update successful - System updated from version 10 to version 20
EOM
)
assert_in_output "$expected_output"
}