]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0018: remove leftover debugging cruft
authorJunio C Hamano <gitster@pobox.com>
Thu, 1 Aug 2024 18:51:12 +0000 (11:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Aug 2024 18:52:11 +0000 (11:52 -0700)
The actual file is copied out to /tmp, presumably so that the tester
can inspect it after the test is done, which may have been a useful
debugging aid.

But in the final shape of the test suite, such a code should not
exist.  We cannot even assume that we are allowed to write into /tmp
(our TMPDIR may not even be pointing at it) or read from it for that
matter.

Noticed-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0018-advice.sh

index b02448ea16353dc2a3c8ad0e245d7f1d5c6b8a60..040a08be07d2e0c412c54820b7fd6ca2a2374d71 100755 (executable)
@@ -93,7 +93,6 @@ EOF
                >README &&
                GIT_ADVICE=true git status
        ) >actual &&
-       cat actual > /tmp/actual &&
        test_cmp expect actual
 '