summaryrefslogtreecommitdiff
path: root/tests/test-basic-user-only.sh
diff options
context:
space:
mode:
authorLuca BRUNO <luca.bruno@coreos.com>2021-08-19 14:07:19 +0000
committerLuca BRUNO <luca.bruno@coreos.com>2021-08-19 16:09:54 +0000
commitd41fcd17a7956fd96831a8fed35309d194c69f9d (patch)
treeb31502e738da694efd80b344204cdf302e38aab8 /tests/test-basic-user-only.sh
parentc6b72f527bd836d810890dfc6c8efd0229157fc3 (diff)
downloadostree-d41fcd17a7956fd96831a8fed35309d194c69f9d.tar.gz
lib/repo/checkout: use canonical perms in bare-user-only mode
This automatically enables canonical permissions for checkouts in bare-user-only mode.
Diffstat (limited to 'tests/test-basic-user-only.sh')
-rwxr-xr-xtests/test-basic-user-only.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/test-basic-user-only.sh b/tests/test-basic-user-only.sh
index f65094fd..02129b28 100755
--- a/tests/test-basic-user-only.sh
+++ b/tests/test-basic-user-only.sh
@@ -25,7 +25,7 @@ set -euo pipefail
mode="bare-user-only"
setup_test_repository "$mode"
-extra_basic_tests=5
+extra_basic_tests=6
. $(dirname $0)/basic-test.sh
$CMD_PREFIX ostree --version > version.yaml
@@ -41,6 +41,7 @@ ostree_repo_init repo init --mode=bare-user-only
cd ${test_tmpdir}
rm repo-input -rf
ostree_repo_init repo-input init --mode=archive
+
cd ${test_tmpdir}
cat > statoverride.txt <<EOF
2048 /some-setuid
@@ -99,3 +100,15 @@ if ! skip_one_without_user_xattrs; then
$OSTREE fsck -q
echo "ok hardlink pull from bare-user"
fi
+
+cd ${test_tmpdir}
+rm repo -rf
+ostree_repo_init repo init --mode=bare-user-only
+rm files -rf && mkdir files
+echo afile > files/afile
+$OSTREE commit ${COMMIT_ARGS} -b perms files
+rm out -rf
+$OSTREE checkout --force-copy perms out
+$OSTREE checkout ${CHECKOUT_H_ARGS} --union-identical perms out
+$OSTREE fsck
+echo "ok checkout checksum with canonical perms"