merge(3p/cgit): subtree merge at adcc4f82
Change-Id: I16941629a17a2f39b9324cb85dc0cec6b104dfe4
This commit is contained in:
parent
f4609b896f
commit
1e81ce6622
26 changed files with 299 additions and 135 deletions
8
third_party/cgit/tests/t0109-gitconfig.sh
vendored
8
third_party/cgit/tests/t0109-gitconfig.sh
vendored
|
|
@ -9,6 +9,12 @@ test -n "$(which strace 2>/dev/null)" || {
|
|||
exit
|
||||
}
|
||||
|
||||
strace true 2>/dev/null || {
|
||||
skip_all='Skipping access validation tests: strace not functional'
|
||||
test_done
|
||||
exit
|
||||
}
|
||||
|
||||
test_no_home_access () {
|
||||
non_existent_path="/path/to/some/place/that/does/not/possibly/exist"
|
||||
while test -d "$non_existent_path"; do
|
||||
|
|
@ -19,7 +25,7 @@ test_no_home_access () {
|
|||
-E CGIT_CONFIG="$PWD/cgitrc" \
|
||||
-E QUERY_STRING="url=$1" \
|
||||
-e access -f -o strace.out cgit &&
|
||||
test_must_fail grep "$non_existent_path" strace.out
|
||||
! grep "$non_existent_path" strace.out
|
||||
}
|
||||
|
||||
test_no_home_access_success() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue