test/sharness: Fixed get gzip archive test
Matt Bell committed
Jan 24, 2015 at 14:28 UTC
23f810e187416262b158eebfc8a3817a973b5d34
1 file changed
+4
-10
test/sharness/t0090-get.sh
+4
-10
@@ -54,7 +54,7 @@ test_expect_success "ipfs get -a output looks good" '
54
test_expect_success "ipfs get -a archive output is valid" '
55
tar -xf "$HASH".tar &&
56
test_cmp $HASH data &&
57
- rm $HASH.tar &&
57
+ rm "$HASH".tar &&
58
rm $HASH
59
'
60
@@ -68,10 +68,8 @@ test_expect_success "ipfs get -a -C output looks good" '
68
test_cmp expected actual
69
'
70
71
-# TODO(mappum): fix this test. On osx I get:
72
-# tar: Error opening archive: (Empty error message)
71
test_expect_failure "gzipped tar archive output is valid" '
74
- tar -xf "$HASH".tar.gz &&
72
+ tar -zxf $HASH.tar.gz &&
73
test_cmp $HASH data &&
74
rm "$HASH".tar.gz &&
75
rm $HASH
@@ -108,12 +106,8 @@ test_expect_success "ipfs get -a -C output looks good (directory)" '
106
test_cmp expected actual
107
'
108
111
-# TODO(mappum): fix this test. failing on travis:
112
-# gzip: stdin: unexpected end of file
113
-# tar: Child returned status 1
114
-# tar: Error is not recoverable: exiting now
115
-test_expect_failure "gzipped tar archive output is valid (directory)" '
116
- tar -xf "$HASH2".tar.gz &&
109
+test_expect_success "gzipped tar archive output is valid (directory)" '
110
+ tar -zxf "$HASH2".tar.gz &&
111
test_cmp dir/a "$HASH2"/a &&
112
test_cmp dir/b/c "$HASH2"/b/c &&
113
rm -r $HASH2