From e5bc81ad9453704908e999306197b2a528b89468 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Sat, 21 Jan 2017 10:07:59 -0800 Subject: [PATCH] don't select README or SHARDING file for random corruption in t0086 License: MIT Signed-off-by: Jeromy --- test/sharness/t0086-repo-verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sharness/t0086-repo-verify.sh b/test/sharness/t0086-repo-verify.sh index f30efb1eb..b0527e8b4 100755 --- a/test/sharness/t0086-repo-verify.sh +++ b/test/sharness/t0086-repo-verify.sh @@ -24,7 +24,7 @@ sort_rand() { } check_random_corruption() { - to_break=$(find "$IPFS_PATH/blocks" -type f | sort_rand | head -n 1) + to_break=$(find "$IPFS_PATH/blocks" -type f | grep -v README | grep -v SHARDING | sort_rand | head -n 1) test_expect_success "back up file and overwrite it" ' cp "$to_break" backup_file &&