mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-10 05:18:30 +03:00
tests: Test partial commits for local remotes
This was broken before, fixed in the previous commit. Closes: #324 Approved by: yuqi-zhang
This commit is contained in:
parent
073c34ca08
commit
3640725439
@ -23,16 +23,18 @@ set -euo pipefail
|
||||
|
||||
setup_fake_remote_repo1 "archive-z2"
|
||||
|
||||
echo '1..1'
|
||||
echo '1..2'
|
||||
|
||||
repopath=${test_tmpdir}/ostree-srv/gnomerepo
|
||||
cp -a ${repopath} ${repopath}.orig
|
||||
|
||||
for remoteurl in $(cat httpd-address)/ostree/gnomerepo \
|
||||
file://$(pwd)/ostree-srv/gnomerepo; do
|
||||
cd ${test_tmpdir}
|
||||
rm repo -rf
|
||||
mkdir repo
|
||||
${CMD_PREFIX} ostree --repo=repo init
|
||||
${CMD_PREFIX} ostree --repo=repo remote add --set=gpg-verify=false origin $(cat httpd-address)/ostree/gnomerepo
|
||||
${CMD_PREFIX} ostree --repo=repo remote add --set=gpg-verify=false origin ${remoteurl}
|
||||
|
||||
${CMD_PREFIX} ostree --repo=repo pull --subpath=/baz origin main
|
||||
|
||||
@ -51,5 +53,5 @@ ${CMD_PREFIX} ostree --repo=repo ls origin:main /firstfile
|
||||
${CMD_PREFIX} ostree --repo=repo pull origin main
|
||||
assert_not_has_file repo/state/${rev}.commitpartial
|
||||
${CMD_PREFIX} ostree --repo=repo fsck
|
||||
|
||||
echo "ok"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user