]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9300: drop some useless uses of cat
authorJeff King <peff@peff.net>
Thu, 29 Aug 2019 15:19:18 +0000 (11:19 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 4 Dec 2019 12:20:03 +0000 (13:20 +0100)
These waste a process, and make the line longer than it needs to be.

Signed-off-by: Jeff King <peff@peff.net>
t/t9300-fast-import.sh

index d47560b6343db7006461259e4808837f3d35eecb..1d2a7516fdbf73f9cfcead252bf6287ea5c489cf 100755 (executable)
@@ -2125,12 +2125,12 @@ test_expect_success 'R: export-marks feature results in a marks file being creat
 
        EOF
 
-       cat input | git fast-import &&
+       git fast-import <input &&
        grep :1 git.marks
 '
 
 test_expect_success 'R: export-marks options can be overridden by commandline options' '
-       cat input | git fast-import --export-marks=other.marks &&
+       git fast-import --export-marks=other.marks <input &&
        grep :1 other.marks
 '
 
@@ -2242,7 +2242,7 @@ test_expect_success 'R: import to output marks works without any content' '
        feature export-marks=marks.new
        EOF
 
-       cat input | git fast-import &&
+       git fast-import <input &&
        test_cmp marks.out marks.new
 '
 
@@ -2252,7 +2252,7 @@ test_expect_success 'R: import marks prefers commandline marks file over the str
        feature export-marks=marks.new
        EOF
 
-       cat input | git fast-import --import-marks=marks.out &&
+       git fast-import --import-marks=marks.out <input &&
        test_cmp marks.out marks.new
 '
 
@@ -2560,7 +2560,7 @@ test_expect_success 'R: quiet option results in no stats being output' '
 
        EOF
 
-       cat input | git fast-import 2> output &&
+       git fast-import 2>output <input &&
        test_must_be_empty output
 '