[PATCH 04/24] t9300 (fast-import): check exit status from upstream of pipes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx>
---
 t/t9300-fast-import.sh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh
index 735ac83..47339a3 100755
--- a/t/t9300-fast-import.sh
+++ b/t/t9300-fast-import.sh
@@ -97,7 +97,8 @@ initial
 EOF
 test_expect_success \
 	'A: verify commit' \
-	'git cat-file commit master | sed 1d >actual &&
+	'git cat-file commit master >commit &&
+	sed 1d <commit >actual &&
 	test_cmp expect actual'
 
 cat >expect <<EOF
@@ -107,7 +108,8 @@ cat >expect <<EOF
 EOF
 test_expect_success \
 	'A: verify tree' \
-	'git cat-file -p master^{tree} | sed "s/ [0-9a-f]*	/ /" >actual &&
+	'git cat-file -p master^{tree} >tree &&
+	 sed "s/ [0-9a-f]*	/ /" <tree >actual &&
 	 test_cmp expect actual'
 
 echo "$file2_data" >expect
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]