Skip to content

Commit

Permalink
fixup! lib: Move bareuseronly verification into commit/core
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Sep 19, 2017
1 parent 65e2838 commit c07cb3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/pull-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down
2 changes: 1 addition & 1 deletion tests/test-basic-user-only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $CMD_PREFIX ostree --repo=repo-input commit -b content-with-suid --statoverride=
if $CMD_PREFIX ostree pull-local --repo=repo repo-input 2>err.txt; then
assert_not_reached "copying suid file into bare-user worked?"
fi
assert_file_has_content err.txt "Invalid mode.*with bits 040.*in bare-user-only"
assert_file_has_content err.txt "Content object.*invalid mode.*with bits 040.*"
echo "ok failed to commit suid"

cd ${test_tmpdir}
Expand Down

0 comments on commit c07cb3c

Please sign in to comment.