mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-08-27 08:56:02 +00:00
acad8c47b0
The current format is very useful information to get from bug reports so add it as default output to swupd update. Signed-off-by: William Douglas <william.douglas@intel.com>
45 lines
1.0 KiB
Bash
Executable File
45 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 "$WEB_DIR"/20
|
|
|
|
sudo rm -rf "$WEB_DIR"/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 (in format staging)
|
|
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"
|
|
}
|
|
#WEIGHT=3
|