summaryrefslogtreecommitdiff
path: root/tests/pull-test.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-09-18 15:46:03 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-09-21 19:14:59 +0000
commit160864d557c02badc7e27a66484ffdf8a13b8341 (patch)
treeba686b0ed7e03ad0d5e06eb7727eeec5446ac532 /tests/pull-test.sh
parentd4c7093e370843c57eab2f89f0c39ef449e6b32e (diff)
downloadostree-160864d557c02badc7e27a66484ffdf8a13b8341.tar.gz
lib: Move bareuseronly verification into commit/core
Conceptually `ostree-repo-pull.c` should be be written using just public APIs; we theoretically support building without HTTP for people who just want to use the object store portion and do their own fetching. We have some nontrivial behaviors in the pull layer though; one of those is the "bareuseronly" verification. Make a new internal API that accepts flags, move it into `commit.c`. This is prep for further work in changing object import to support reflinks. Closes: #1193 Approved by: jlebon
Diffstat (limited to 'tests/pull-test.sh')
-rw-r--r--tests/pull-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pull-test.sh b/tests/pull-test.sh
index f44c2ced..3780d1ad 100644
--- a/tests/pull-test.sh
+++ b/tests/pull-test.sh
@@ -127,7 +127,7 @@ for flag in "" "--mirror"; do
if ${CMD_PREFIX} ostree --repo=mirrorrepo pull ${flag} --bareuseronly-files origin content-with-suid 2>err.txt; then
assert_not_reached "pulled unsafe bareuseronly"
fi
- assert_file_has_content err.txt 'object.*\.file: invalid mode.*with bits 040.*'
+ assert_file_has_content err.txt 'Content object.*: invalid mode.*with bits 040.*'
done
echo "ok pull (bareuseronly, unsafe)"