mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Ensure that in regression there is a zero file when required
This commit is contained in:
parent
bebb2923cf
commit
aef6945501
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue