We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b679af commit 43459c9Copy full SHA for 43459c9
test/sharness/t0080-repo.sh
@@ -55,6 +55,17 @@ test_expect_success "ipfs repo gc fully reverse ipfs add (part 1)" '
55
ipfs pin rm -r $hash &&
56
ipfs repo gc
57
'
58
+test_expect_success "'ipfs repo gc --silent' succeeds (no output)" '
59
+ echo "should be empty" >bfile &&
60
+ HASH2=`ipfs add -q bfile` &&
61
+ ipfs cat "$HASH2" >expected11 &&
62
+ test_cmp expected11 bfile &&
63
+ ipfs pin rm -r "$HASH2" &&
64
+ ipfs repo gc --silent >gc_out_empty &&
65
+ test_cmp /dev/null gc_out_empty &&
66
+ test_must_fail ipfs cat "$HASH2" 2>err_expected1 &&
67
+ grep "Error: merkledag: not found" err_expected1
68
+'
69
70
test_kill_ipfs_daemon
71
0 commit comments