test/sharness: improve t0090 by using printf
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Feb 2, 2015 at 01:38 UTC
5aeadd44ad2cdc8fdb13b7c5db82912f7a7ca282
1 file changed
+5
-10
test/sharness/t0090-get.sh
+5
-10
@@ -27,8 +27,7 @@ test_expect_success "ipfs get succeeds" '
27
'
28
29
test_expect_success "ipfs get output looks good" '
30
- echo "Saving file(s) to "$HASH"
31
-" >expected &&
30
+ printf "%s\n\n" "Saving file(s) to $HASH" >expected &&
31
test_cmp expected actual
32
'
33
@@ -46,8 +45,7 @@ test_expect_success "ipfs get -a succeeds" '
45
'
46
47
test_expect_success "ipfs get -a output looks good" '
49
- echo "Saving archive to $HASH.tar
50
-" >expected &&
48
+ printf "%s\n\n" "Saving archive to $HASH.tar" >expected &&
49
test_cmp expected actual
50
'
51
@@ -63,8 +61,7 @@ test_expect_success "ipfs get -a -C succeeds" '
61
'
62
63
test_expect_success "ipfs get -a -C output looks good" '
66
- echo "Saving archive to $HASH.tar.gz
67
-" >expected &&
64
+ printf "%s\n\n" "Saving archive to $HASH.tar.gz" >expected &&
65
test_cmp expected actual
66
'
67
@@ -86,8 +83,7 @@ test_expect_success "ipfs get succeeds (directory)" '
83
'
84
85
test_expect_success "ipfs get output looks good (directory)" '
89
- echo "Saving file(s) to $HASH2
90
-" >expected &&
86
+ printf "%s\n\n" "Saving file(s) to $HASH2" >expected &&
87
test_cmp expected actual
88
'
89
@@ -102,8 +98,7 @@ test_expect_success "ipfs get -a -C succeeds (directory)" '
98
'
99
100
test_expect_success "ipfs get -a -C output looks good (directory)" '
105
- echo "Saving archive to $HASH2.tar.gz
106
-" >expected &&
101
+ printf "%s\n\n" "Saving archive to $HASH2.tar.gz" >expected &&
102
test_cmp expected actual
103
'
104