diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-05-09 00:37:24 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-05-09 00:37:24 +0900 |
| commit | 1b403146616286e017d4fc1dfcbb056d56200655 (patch) | |
| tree | b90a8d576eb19e028eb5f6772f5ba8d0d3d3cf60 /t | |
| parent | b877cb4a7ec2fafd03b6a3a70c26370744a32c1b (diff) | |
| parent | a4d3a283db5259cc372809da4dc085c3f40aebfb (diff) | |
| download | git-1b403146616286e017d4fc1dfcbb056d56200655.tar.gz | |
Merge branch 'js/trace2-to-directory'
The trace2 tracing facility learned to auto-generate a filename
when told to log to a directory.
* js/trace2-to-directory:
trace2: write to directory targets
Diffstat (limited to 't')
| -rwxr-xr-x | t/t0210-trace2-normal.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t0210-trace2-normal.sh b/t/t0210-trace2-normal.sh index 03a0aedb1d..819430658b 100755 --- a/t/t0210-trace2-normal.sh +++ b/t/t0210-trace2-normal.sh @@ -80,6 +80,21 @@ test_expect_success 'normal stream, return code 1' ' test_cmp expect actual ' +test_expect_success 'automatic filename' ' + test_when_finished "rm -r traces actual expect" && + mkdir traces && + GIT_TR2="$(pwd)/traces" test-tool trace2 001return 0 && + perl "$TEST_DIRECTORY/t0210/scrub_normal.perl" <"$(ls traces/*)" >actual && + cat >expect <<-EOF && + version $V + start _EXE_ trace2 001return 0 + cmd_name trace2 (trace2) + exit elapsed:_TIME_ code:0 + atexit elapsed:_TIME_ code:0 + EOF + test_cmp expect actual +' + # Verb 002exit # # Explicit exit(code) from within cmd_<verb> propagates <code>. |
