diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-01-15 00:29:29 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-15 00:29:29 +0100 |
commit | 68f1c0d102f4422c4fa59f597335ddef7602d27e (patch) | |
tree | db0971a1a2c512fb61da62fc0d5da12a1f4097d2 /t/t0061-run-command.sh | |
parent | Merge branch 'nd/checkout-noisy' (diff) | |
parent | t0061: do not fail test if '.' is part of $PATH (diff) | |
download | git-68f1c0d102f4422c4fa59f597335ddef7602d27e.tar.xz git-68f1c0d102f4422c4fa59f597335ddef7602d27e.zip |
Merge branch 'hb/t0061-dot-in-path-fix'
Test update.
* hb/t0061-dot-in-path-fix:
t0061: do not fail test if '.' is part of $PATH
Diffstat (limited to 't/t0061-run-command.sh')
-rwxr-xr-x | t/t0061-run-command.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/t0061-run-command.sh b/t/t0061-run-command.sh index 96bf6d6a7d..99a614bc7c 100755 --- a/t/t0061-run-command.sh +++ b/t/t0061-run-command.sh @@ -31,7 +31,15 @@ test_expect_success 'run_command can run a command' ' test_must_be_empty err ' -test_expect_success 'run_command is restricted to PATH' ' + +test_lazy_prereq RUNS_COMMANDS_FROM_PWD ' + write_script runs-commands-from-pwd <<-\EOF && + true + EOF + runs-commands-from-pwd >/dev/null 2>&1 +' + +test_expect_success !RUNS_COMMANDS_FROM_PWD 'run_command is restricted to PATH' ' write_script should-not-run <<-\EOF && echo yikes EOF |