summaryrefslogtreecommitdiff
path: root/tests/test-pull-corruption.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-03-24 10:35:59 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-03-24 22:16:43 +0000
commit455cc5e8926350cf4386792090068ff71af08f15 (patch)
tree9c626a9034e23257fbfbe0b5a99111416c1ab282 /tests/test-pull-corruption.sh
parent4d873389f0aae45e18c8c40b2b868b8264beaade (diff)
downloadostree-455cc5e8926350cf4386792090068ff71af08f15.tar.gz
repo+tests: Add [core]disable-xattrs=true, use it on overlayfs
There are a lot of things suboptimal about this approach, but on the other hand we need to get our CI back up and running. The basic approach is to - in the test suite, detect if we're on overlayfs. If so, set a flag in the repo, which gets picked up by a few strategic places in the core to turn on "ignore xattrs". I also had to add a variant of this for the sysroot work. The core problem here is while overlayfs will let us read and see the SELinux labels, it won't let us write them. Down the line, we should improve this so that we can selectively ignore e.g. `security.*` attributes but not `user.*` say. Closes: https://github.com/ostreedev/ostree/issues/758 Closes: #759 Approved by: jlebon
Diffstat (limited to 'tests/test-pull-corruption.sh')
-rwxr-xr-xtests/test-pull-corruption.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-pull-corruption.sh b/tests/test-pull-corruption.sh
index 646113a1..89d89b75 100755
--- a/tests/test-pull-corruption.sh
+++ b/tests/test-pull-corruption.sh
@@ -38,7 +38,7 @@ do_corrupt_pull_test() {
cd ${test_tmpdir}
rm repo -rf
mkdir repo
- ${CMD_PREFIX} ostree --repo=repo init
+ ostree_repo_init repo
${CMD_PREFIX} ostree --repo=repo remote add --set=gpg-verify=false origin $(cat httpd-address)/ostree/gnomerepo
if ${CMD_PREFIX} ostree --repo=repo pull origin main; then
assert_not_reached "pull unexpectedly succeeded!"