mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
tests/delta-crosscheck: Add missing --from
Otherwise we generate a static delta from the *previous* and get confused. To make doubly sure, add `--require-static-deltas` to pull. Closes: #416 Approved by: jlebon
This commit is contained in:
parent
fc25fa16e1
commit
fb0bf27d10
@ -45,10 +45,10 @@ validate_delta_options() {
|
|||||||
mkdir testrepo
|
mkdir testrepo
|
||||||
ostree --repo=testrepo init --mode=bare-user
|
ostree --repo=testrepo init --mode=bare-user
|
||||||
ostree --repo=testrepo remote add --set=gpg-verify=false local file://${repo}
|
ostree --repo=testrepo remote add --set=gpg-verify=false local file://${repo}
|
||||||
ostree --repo=${repo} static-delta generate $@ ${from} ${to}
|
ostree --repo=${repo} static-delta generate $@ --from=${from} --to=${to}
|
||||||
ostree --repo=testrepo pull local ${branch}@${from}
|
ostree --repo=testrepo pull --require-static-deltas local ${branch}@${from}
|
||||||
assert_streq $(ostree --repo=testrepo rev-parse ${branch}) ${from}
|
assert_streq $(ostree --repo=testrepo rev-parse ${branch}) ${from}
|
||||||
ostree --repo=testrepo pull local ${branch}
|
ostree --repo=testrepo pull --require-static-deltas local ${branch}
|
||||||
assert_streq $(ostree --repo=testrepo rev-parse ${branch}) ${to}
|
assert_streq $(ostree --repo=testrepo rev-parse ${branch}) ${to}
|
||||||
ostree --repo=testrepo fsck
|
ostree --repo=testrepo fsck
|
||||||
rm testrepo -rf
|
rm testrepo -rf
|
||||||
|
Loading…
Reference in New Issue
Block a user