Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Name the missing home without searching for one
strace logs a call that names the path whether or not it succeeds, so a
home that existed would still be caught, and cgit unsets HOME before git
runs anyway.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0302-home-access.sh | 11 |
1 file changed, 1 insertion, 10 deletions
diff --git a/tests/t0302-home-access.sh b/tests/t0302-home-access.sh index df55e0d..925716e 100755 --- a/tests/t0302-home-access.sh +++ b/tests/t0302-home-access.sh @@ -26,16 +26,7 @@ strace true 2>/dev/null || { } test_no_home_access() { - # A home that happened to exist would be one git may legitimately - # read, leaving the check below with nothing to catch, so extend the - # path until nothing is there. - missing_home="/path/to/some/place/that/does/not/possibly/exist" - depth=0 - while test -d "$missing_home" - do - depth=$((depth + 1)) - missing_home="$missing_home/$depth" - done && + missing_home=/path/to/some/place/that/does/not/possibly/exist && strace \ -E HOME="$missing_home" \ -E CGIT_CONFIG="$PWD/cgitrc" \ |
