mirror of
https://github.com/git/git
synced 2024-10-29 17:08:46 +00:00
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
This commit is contained in:
commit
68f1c0d102
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue