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:
Colin Walters 2016-07-28 21:06:38 -04:00 committed by Atomic Bot
parent fc25fa16e1
commit fb0bf27d10

View File

@ -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