tree-wide: Replace various uses of archive-z2 → archive
The `-z2` is annoying now since it's really a legacy; we've long since supported typing `archive`. Convert the docs fully and explain that. Also do some (but not all) of the tests just to encourage newer tests to use `archive` too. Closes: #980 Approved by: jlebon
This commit is contained in:
1 parent
8d586a9da0
commit
90e0d56332
11 files changed
+36
-35
No files matched your search
+2
-2
@@ -512,7 +512,7 @@ find repo3/objects -name '*.filez' > file-objects
|
||||
if test -s file-objects; then
|
||||
assert_not_reached "prune didn't delete all objects"
|
||||
fi
|
||||
echo "ok prune in archive-z2 deleted everything"
|
||||
echo "ok prune in archive deleted everything"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
rm -rf test2-checkout
|
||||
@@ -730,7 +730,7 @@ $OSTREE commit ${COMMIT_ARGS} -b test2 -s "Unfsynced commit" --fsync=false
|
||||
if test "$(id -u)" != "0"; then
|
||||
cd ${test_tmpdir}
|
||||
rm -f expected-fail error-message
|
||||
$OSTREE init --mode=archive-z2 --repo=repo-noperm
|
||||
$OSTREE init --mode=archive --repo=repo-noperm
|
||||
chmod -w repo-noperm/objects
|
||||
$OSTREE --repo=repo-noperm pull-local repo 2> error-message || touch expected-fail
|
||||
chmod +w repo-noperm/objects
|
||||
|
||||
+5
-5
@@ -50,7 +50,7 @@ echo "ok pull contents"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
mkdir mirrorrepo
|
||||
ostree_repo_init mirrorrepo --mode=archive-z2
|
||||
ostree_repo_init mirrorrepo --mode=archive
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo remote add --set=gpg-verify=false origin $(cat httpd-address)/ostree/gnomerepo
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo pull --mirror origin main
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo fsck
|
||||
@@ -63,7 +63,7 @@ ${CMD_PREFIX} ostree --repo=ostree-srv/gnomerepo commit -b otherbranch --tree=di
|
||||
${CMD_PREFIX} ostree --repo=ostree-srv/gnomerepo summary -u
|
||||
rm mirrorrepo -rf
|
||||
# All refs
|
||||
ostree_repo_init mirrorrepo --mode=archive-z2
|
||||
ostree_repo_init mirrorrepo --mode=archive
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo remote add --set=gpg-verify=false origin $(cat httpd-address)/ostree/gnomerepo
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo pull --mirror origin
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo fsck
|
||||
@@ -73,7 +73,7 @@ done
|
||||
echo "ok pull mirror (all refs)"
|
||||
|
||||
rm mirrorrepo -rf
|
||||
ostree_repo_init mirrorrepo --mode=archive-z2
|
||||
ostree_repo_init mirrorrepo --mode=archive
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo remote add --set=gpg-verify=false origin $(cat httpd-address)/ostree/gnomerepo
|
||||
# Generate a summary in the mirror
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo summary -u
|
||||
@@ -152,7 +152,7 @@ echo "ok pull commit metadata only (should not apply deltas)"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
mkdir mirrorrepo-local
|
||||
ostree_repo_init mirrorrepo-local --mode=archive-z2
|
||||
ostree_repo_init mirrorrepo-local --mode=archive
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo-local remote add --set=gpg-verify=false origin file://$(pwd)/ostree-srv/gnomerepo
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo-local pull --mirror origin main
|
||||
${CMD_PREFIX} ostree --repo=mirrorrepo-local fsck
|
||||
@@ -170,7 +170,7 @@ echo "ok pull detached metadata"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
mkdir parentpullrepo
|
||||
ostree_repo_init parentpullrepo --mode=archive-z2
|
||||
ostree_repo_init parentpullrepo --mode=archive
|
||||
${CMD_PREFIX} ostree --repo=parentpullrepo remote add --set=gpg-verify=false origin file://$(pwd)/ostree-srv/gnomerepo
|
||||
parent_rev=$(ostree --repo=ostree-srv/gnomerepo rev-parse main^)
|
||||
rev=$(ostree --repo=ostree-srv/gnomerepo rev-parse main)
|
||||
|
||||
@@ -21,6 +21,6 @@ set -euo pipefail
|
||||
|
||||
. $(dirname $0)/libtest.sh
|
||||
|
||||
setup_fake_remote_repo1 "archive-z2"
|
||||
setup_fake_remote_repo1 "archive"
|
||||
|
||||
. ${test_srcdir}/pull-test.sh
|
||||
+1
-1
@@ -43,7 +43,7 @@ test_data_init (TestData *td)
|
||||
if (!td->repo)
|
||||
goto out;
|
||||
|
||||
if (!ot_test_run_libtest ("setup_fake_remote_repo1 archive-z2", error))
|
||||
if (!ot_test_run_libtest ("setup_fake_remote_repo1 archive", error))
|
||||
goto out;
|
||||
|
||||
if (!g_file_get_contents ("httpd-address", &http_address, NULL, error))
|
||||
|
||||
Reference in new issue
Block a user