@matheusbsbs / matheus-bagliano / commits / f94804c1f2
Fork 0

t9300: drop some useless uses of cat

These waste a process, and make the line longer than it needs to be. Signed-off-by: Jeff King <peff@peff.net>

Jeff King committed Aug 29, 2019 at 11:19 UTC f94804c1f2626831c6bdf8cc269a571324e3f2f2
1 file changed +5 -5
t/t9300-fast-import.sh
+5 -5
@@ -2125,12 +2125,12 @@ test_expect_success 'R: export-marks feature results in a marks file being creat
2125
2126 EOF
2127
2128 - cat input | git fast-import &&
2128 + git fast-import <input &&
2129 grep :1 git.marks
2130 '
2131
2132 test_expect_success 'R: export-marks options can be overridden by commandline options' '
2133 - cat input | git fast-import --export-marks=other.marks &&
2133 + git fast-import --export-marks=other.marks <input &&
2134 grep :1 other.marks
2135 '
2136
@@ -2242,7 +2242,7 @@ test_expect_success 'R: import to output marks works without any content' '
2242 feature export-marks=marks.new
2243 EOF
2244
2245 - cat input | git fast-import &&
2245 + git fast-import <input &&
2246 test_cmp marks.out marks.new
2247 '
2248
@@ -2252,7 +2252,7 @@ test_expect_success 'R: import marks prefers commandline marks file over the str
2252 feature export-marks=marks.new
2253 EOF
2254
2255 - cat input | git fast-import --import-marks=marks.out &&
2255 + git fast-import --import-marks=marks.out <input &&
2256 test_cmp marks.out marks.new
2257 '
2258
@@ -2560,7 +2560,7 @@ test_expect_success 'R: quiet option results in no stats being output' '
2560
2561 EOF
2562
2563 - cat input | git fast-import 2> output &&
2563 + git fast-import 2>output <input &&
2564 test_must_be_empty output
2565 '
2566