]> git.ipfire.org Git - thirdparty/git.git/commit
t1502: don't create unused files
authorAndrei Rybak <rybak.a.v@gmail.com>
Mon, 17 Apr 2023 19:10:43 +0000 (21:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 May 2023 15:53:06 +0000 (08:53 -0700)
commitdca675c6ef9b1d649adfb5a6cfdf2e7c32f18928
treef710f496781a631b443c580179fddcc84ce55651
parent59162ece57738dfd928093251d4e95d87825ecf9
t1502: don't create unused files

Three tests in file t1502-rev-parse-parseopt.sh use three redirections
with invocation of "git rev-parse --parseopt --".  All three tests
redirect standard output to file "out" and file "spec" to standard
input.  Two of the tests redirect standard output a second time to file
"actual", and the third test redirects standard error to file "err".
These tests check contents of files "actual" and "err", but don't use
the files named "out" for assertions.  The two tests that redirect to
standard output twice might also be confusing to the reader.

Don't redirect standard output of "git rev-parse" to file "out" in
t1502-rev-parse-parseopt.sh to avoid creating unnecessary files.

Acked-by: Øystein Walle <oystwa@gmail.com>
Signed-off-by: Andrei Rybak <rybak.a.v@gmail.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1502-rev-parse-parseopt.sh