mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Avoids to test permission when run as root.
This commit is contained in:
parent
23060095c9
commit
8c78b4b4a9
2 changed files with 13 additions and 3 deletions
6
HISTORY
6
HISTORY
|
|
@ -1,9 +1,13 @@
|
|||
SnapRAID HISTORY
|
||||
================
|
||||
|
||||
6.2 2014/5
|
||||
==========
|
||||
* Fixed the regression test when run as root.
|
||||
|
||||
6.1 2014/4
|
||||
==========
|
||||
* Fix build and regression test in Mac OS X.
|
||||
* Fixed build and regression test in Mac OS X.
|
||||
|
||||
6.0 2014/3
|
||||
==========
|
||||
|
|
|
|||
10
Makefile.am
10
Makefile.am
|
|
@ -250,7 +250,10 @@ endif
|
|||
echo RUN > bench/disk1/RUN-RM
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "rm bench/disk1/RUN-RM" --test-expect-failure sync
|
||||
echo RUN > bench/disk1/RUN-CHMOD
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "chmod a-r bench/disk1/RUN-CHMOD" --test-expect-failure sync
|
||||
# Doesn't run this test as root because the root user overrride permissions
|
||||
if [[ $$EUID -ne 0 ]]; then \
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "chmod a-r bench/disk1/RUN-CHMOD" --test-expect-failure sync; \
|
||||
fi
|
||||
echo RUN > bench/disk1/RUN-SIZE
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "echo RUNRUN > bench/disk1/RUN-SIZE" --test-expect-failure sync
|
||||
echo RUN > bench/disk1/RUN-TOUCH
|
||||
|
|
@ -265,7 +268,10 @@ endif
|
|||
echo HASH > bench/disk1/HASH-RM
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "rm bench/disk1/HASH-RM" --test-expect-failure -h sync
|
||||
echo HASH > bench/disk1/HASH-CHMOD
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "chmod a-r bench/disk1/HASH-CHMOD" --test-expect-failure -h sync
|
||||
# Doesn't run this test as root because the root user overrride permissions
|
||||
if [[ $$EUID -ne 0 ]]; then \
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "chmod a-r bench/disk1/HASH-CHMOD" --test-expect-failure -h sync; \
|
||||
fi
|
||||
echo HASH > bench/disk1/HASH-SIZE
|
||||
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-run "echo HASHHASH > bench/disk1/HASH-SIZE" --test-expect-failure -h sync
|
||||
echo HASH > bench/disk1/HASH-TOUCH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue