diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2021-12-09 00:11:02 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-13 10:29:48 -0800 |
commit | efe47c83b266b3ca12d646f5a8f1c6a71f0d6e44 (patch) | |
tree | 71ec34e5efff98c788d139e583c962e25eeee9dc /commit-graph.h | |
parent | t5516: drop unnecessary subshell and command invocation (diff) | |
download | tgif-efe47c83b266b3ca12d646f5a8f1c6a71f0d6e44.tar.xz |
t6300: make `%(raw:size) --shell` test more robust
This test populates its `expect` file solely by appending content but
fails to ensure that the file starts out empty. The test succeeds only
because no earlier test populated a file of the exact same name, however
this is an accident waiting to happen. Make the test more robust by
ensuring that it contains exactly the intended content.
While at it, simplify the implementation via a straightforward `sed`
application and by avoiding dropping out of the single-quote context
within the test body (thus eliminating a hard-to-digest combination of
apostrophes and backslashes).
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.h')
0 files changed, 0 insertions, 0 deletions