diff options
| author | Junio C Hamano <gitster@pobox.com> | 2015-02-25 15:40:18 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-02-25 15:40:18 -0800 |
| commit | 75b49bb181555b25d316bbe427ba7feedd2a58da (patch) | |
| tree | 689c880151a20ee5cd6e2db36cca4f2d11a54673 /t/t0061-run-command.sh | |
| parent | 4f5a4271ea3657ea79de4ccef20c29619c36d1c1 (diff) | |
| parent | f400e51c13eb4143e420d41d9b415d4f5ddbdb85 (diff) | |
| download | git-75b49bb181555b25d316bbe427ba7feedd2a58da.tar.gz | |
Merge branch 'jk/sanity'
The tests that wanted to see that file becomes unreadable after
running "chmod a-r file", and the tests that wanted to make sure it
is not run as root, we used "can we write into the / directory?" as
a cheap substitute, but on some platforms that is not a good
heuristics. The tests and their prerequisites have been updated to
check what they really require.
* jk/sanity:
test-lib.sh: set prerequisite SANITY by testing what we really need
tests: correct misuses of POSIXPERM
t/lib-httpd: switch SANITY check for NOT_ROOT
Diffstat (limited to 't/t0061-run-command.sh')
| -rwxr-xr-x | t/t0061-run-command.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0061-run-command.sh b/t/t0061-run-command.sh index 17e969df60..9acf628726 100755 --- a/t/t0061-run-command.sh +++ b/t/t0061-run-command.sh @@ -34,7 +34,7 @@ test_expect_success POSIXPERM 'run_command reports EACCES' ' grep "fatal: cannot exec.*hello.sh" err ' -test_expect_success POSIXPERM 'unreadable directory in PATH' ' +test_expect_success POSIXPERM,SANITY 'unreadable directory in PATH' ' mkdir local-command && test_when_finished "chmod u+rwx local-command && rm -fr local-command" && git config alias.nitfol "!echo frotz" && |
