Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info

t/t0014: fix: eliminate additional lines from trace
This commit is contained in:
Johannes Schindelin 2020-10-09 08:04:59 +02:00
commit 4d82d81066

View File

@ -38,10 +38,10 @@ test_expect_success 'looping aliases - internal execution' '
#'
test_expect_success 'run-command formats empty args properly' '
test_must_fail env GIT_TRACE=1 git frotz a "" b " " c 2>actual.raw &&
sed -ne "/run_command:/s/.*trace: run_command: //p" actual.raw >actual &&
echo "git-frotz a '\'''\'' b '\'' '\'' c" >expect &&
test_cmp expect actual
test_must_fail env GIT_TRACE=1 git frotz a "" b " " c 2>actual.raw &&
sed -ne "/run_command:/s/.*trace: run_command: //p" actual.raw >actual &&
echo "git-frotz a '\'''\'' b '\'' '\'' c" >expect &&
test_cmp expect actual
'
test_expect_success 'tracing a shell alias with arguments shows trace of prepared command' '