提交 3eea954a 作者: Juan Benet

Merge pull request #1784 from ipfs/improve-t0081

t0081: swap test_cmp arguments
......@@ -98,10 +98,11 @@ test_expect_success "'ipfs add dir' succeeds" '
echo "some text 6" >dir1/dir2/dir4/file6 &&
echo "some text 2" >dir1/dir3/file2 &&
echo "some text 5" >dir1/dir3/file5 &&
ipfs add -q -r dir1 | tail -n1 >actual1 &&
ipfs add -q -r dir1 >actualall &&
tail -n1 actualall >actual1 &&
echo "$HASH_DIR1" >expected1 &&
ipfs repo gc && # remove the patch chaff
test_cmp actual1 expected1
test_cmp expected1 actual1
'
test_expect_success "objects are there" '
......@@ -216,7 +217,7 @@ test_expect_success "'ipfs repo gc' succeeds" '
echo "removed $HASH_FILE3" > gc_out_exp2 &&
echo "removed $HASH_FILE5" >> gc_out_exp2 &&
echo "removed $HASH_DIR3" >> gc_out_exp2 &&
test_sort_cmp gc_out_actual2 gc_out_exp2
test_sort_cmp gc_out_exp2 gc_out_actual2
'
# use object links for HASH_DIR1 here because its children
......@@ -231,7 +232,7 @@ test_expect_success "some objects are still there" '
ipfs ls "$HASH_DIR4" >>actual8 &&
ipfs ls "$HASH_DIR2" >>actual8 &&
ipfs object links "$HASH_DIR1" >>actual8 &&
test_cmp actual8 expected8
test_cmp expected8 actual8
'
# todo: make this faster somehow.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论