mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-03 04:01:34 +00:00
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>
44 lines
1.0 KiB
Bash
Executable File
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"
|
|
}
|