@cryptotaxi247 / kubo / commits / e5bc81ad9

don't select README or SHARDING file for random corruption in t0086

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Jan 21, 2017 at 10:07 UTC e5bc81ad9453704908e999306197b2a528b89468
1 file changed +1 -1
test/sharness/t0086-repo-verify.sh
+1 -1
@@ -24,7 +24,7 @@ sort_rand() {
24 }
25
26 check_random_corruption() {
27 - to_break=$(find "$IPFS_PATH/blocks" -type f | sort_rand | head -n 1)
27 + to_break=$(find "$IPFS_PATH/blocks" -type f | grep -v README | grep -v SHARDING | sort_rand | head -n 1)
28
29 test_expect_success "back up file and overwrite it" '
30 cp "$to_break" backup_file &&