mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-07 22:21:32 +00:00
Removing update-apply-full-file-delta as duplicate
One test was removed: update-apply-full-file-delta.bats (it was a duplicate of test/functional/update/update-use-pack.bats) Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
This commit is contained in:
committed by
Otavio Pontes
parent
80e9683a04
commit
ff175e438e
@@ -166,7 +166,6 @@ BATS = \
|
||||
test/functional/search/search-content-check-negative.bats \
|
||||
test/functional/search/search-content-check-positive.bats \
|
||||
test/functional/search/search-client-certificate.bats \
|
||||
test/functional/update/update-apply-full-file-delta.bats \
|
||||
test/functional/update/update-boot-file.bats \
|
||||
test/functional/update/update-boot-skip.bats \
|
||||
test/functional/update/update-bundle-removed.bats \
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load "../testlib"
|
||||
|
||||
test_setup() {
|
||||
|
||||
create_test_environment "$TEST_NAME"
|
||||
create_version -p "$TEST_NAME" 100 10
|
||||
update_bundle "$TEST_NAME" os-core --update /core
|
||||
|
||||
}
|
||||
|
||||
@test "update use delta pack" {
|
||||
|
||||
run sudo sh -c "$SWUPD update $SWUPD_OPTS"
|
||||
assert_status_is 0
|
||||
expected_output=$(cat <<-EOM
|
||||
Update started.
|
||||
Preparing to update from 10 to 100
|
||||
Downloading packs...
|
||||
Extracting os-core pack for version 100
|
||||
Statistics for going from version 10 to version 100:
|
||||
changed bundles : 1
|
||||
new bundles : 0
|
||||
deleted bundles : 0
|
||||
changed files : 1
|
||||
new files : 0
|
||||
deleted files : 0
|
||||
Starting download of remaining update content. This may take a while...
|
||||
Finishing download of update content...
|
||||
Staging file content
|
||||
Applying update
|
||||
Update was applied.
|
||||
Calling post-update helper scripts.
|
||||
Update successful. System updated from version 10 to version 100
|
||||
EOM
|
||||
)
|
||||
assert_is_output "$expected_output"
|
||||
# make sure the file was updated correctly
|
||||
fhash=$(get_hash_from_manifest "$WEBDIR"/100/Manifest.os-core /core)
|
||||
assert_files_equal "$TARGETDIR"/core "$TEST_NAME"/web-dir/100/files/"$fhash"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user