]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'hb/t0061-dot-in-path-fix'
authorJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2019 23:29:29 +0000 (15:29 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2019 23:29:29 +0000 (15:29 -0800)
Test update.

* hb/t0061-dot-in-path-fix:
  t0061: do not fail test if '.' is part of $PATH

1  2 
t/t0061-run-command.sh

index 96bf6d6a7d0145334666fcd15373bad6ac66fd67,e622024cb28b9b8feb9863d0defc6a86b2c49fc9..99a614bc7c45ca792c7bbce7d16f793ab6107896
@@@ -25,13 -24,21 +25,21 @@@ test_expect_success 'start_command repo
  test_expect_success 'run_command can run a command' '
        cat hello-script >hello.sh &&
        chmod +x hello.sh &&
 -      test-run-command run-command ./hello.sh >actual 2>err &&
 +      test-tool run-command run-command ./hello.sh >actual 2>err &&
  
        test_cmp hello-script actual &&
 -      test_cmp empty err
 +      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