From aef694550153f1c71a36d52ec45afc1c963ef46e Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 31 Dec 2015 17:55:14 +0100 Subject: [PATCH] Ensure that in regression there is a zero file when required --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 07089c07..7cf84b54 100644 --- a/Makefile.am +++ b/Makefile.am @@ -706,8 +706,10 @@ endif rm -r bench/disk1/a_copy $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) sync $(MSG) Abort sync early with additions, delete them and recover with PAR2 - $(MSG) This triggers the recovering with q using p to check the validity, but failing for new block being filled with zero + $(MSG) This triggers the recovering with q using p to check the validity, but failing for new blocks being filled with zero cp -pR bench/disk1/a bench/disk1/a_copy +# Ensure that there is at least one zero filled file + head -c 8192 /dev/zero > bench/disk1/a_copy/ZERO_FILLED $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -B 1 --test-kill-after-sync -c $(CONF) sync rm -r bench/disk1/a_copy $(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-expect-unrecoverable -c $(PAR2) fix -l test-fail-earlysyncadd.log