mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-28 19:06:42 -05:00
Lock unsafe command-line options after enabling GUI mode
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
This commit is contained in:
parent
209b902301
commit
a11ebd8ad3
3 changed files with 52 additions and 3 deletions
|
|
@ -361,7 +361,7 @@ CHECKFLAGS_ALPHA = $(CHECKFLAGS_COMMON) --test-force-order-alpha
|
|||
CHECKFLAGS_DIR = $(CHECKFLAGS_COMMON) --test-force-order-dir -q -q -q
|
||||
|
||||
# Verbose options
|
||||
CHECKFLAGS_VERBOSE = $(CHECKFLAGS_ALPHA) -v --gui
|
||||
CHECKFLAGS_VERBOSE = $(CHECKFLAGS_ALPHA) -v
|
||||
|
||||
# Quiet options
|
||||
CHECKFLAGS = $(CHECKFLAGS_ALPHA) -q -q -q
|
||||
|
|
@ -893,14 +893,14 @@ endif # HAVE_POSIX
|
|||
$(FAILENV) $(SNAPRAID) $(CHECKFLAGS_VERBOSE) -c $(PAR1) --test-expect-need-sync diff > output.log
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) --test-skip-fallocate -c $(PAR1) sync
|
||||
$(MSG) Modified hardlink scan and recovery
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS_VERBOSE) --gui-verbose -c $(PAR1) list -l test.log > output.log
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS_VERBOSE) -c $(PAR1) list -l test.log --gui-verbose > output.log
|
||||
grep -q '^file:disk1:a-hardlink-main:' test.log
|
||||
grep -q '^link_hardlink:disk1:b-hardlink-link:a-hardlink-main$$' test.log
|
||||
! grep -q '^file:disk1:b-hardlink-link:' test.log
|
||||
echo MODIFIED-CONTENT-WITH-DIFFERENT-SIZE > bench/hardlink-expected
|
||||
echo MODIFIED-CONTENT-WITH-DIFFERENT-SIZE > bench/disk1/a-hardlink-main
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(PAR1) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS_VERBOSE) --gui-verbose -c $(PAR1) list -l test.log > output.log
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS_VERBOSE) -c $(PAR1) list -l test.log --gui-verbose > output.log
|
||||
grep -q '^file:disk1:a-hardlink-main:' test.log
|
||||
grep -q '^link_hardlink:disk1:b-hardlink-link:a-hardlink-main$$' test.log
|
||||
! grep -q '^file:disk1:b-hardlink-link:' test.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue