summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-09 11:36:52 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-09 11:36:52 +0200
commit376333b39247839499fb90e95f3e1db944a2a0b9 (patch)
treef62fb83bd6fcbddcb700085c46d7e635c9fdfd29 /test/main
parent522fddc75ee774e9afb2b05658876e9f2f5935e0 (diff)
envstore: Change the store file by setting ENVSTORE_FILE
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/main b/test/main
index dae8878..a344379 100755
--- a/test/main
+++ b/test/main
@@ -13,8 +13,8 @@ while [[ $1 == --* ]] {
}
typeset envstore=${1-bin/envstore}
-typeset store_file=${2-/tmp/envstore-$UID}
-typeset backup_file="/tmp/envstore-backup-$UID"
+typeset store_file="/tmp/envstore-test-$UID"
+export ENVSTORE_FILE=$store_file
trap "print -P '\n%N:%i: %B%F{red}Test faild!%F{default}%b'" ZERR
trap "$envstore clear" INT
@@ -34,10 +34,6 @@ if ((help)) {
exit 0
}
-if [[ -e $store_file ]] {
- mv $store_file $backup_file
-}
-
echo "# Documentation"
podchecker -warnings -warnings man/*/*
@@ -155,7 +151,3 @@ if ((test_security)) {
}
print -P '\n%F{green}Test passed%F{default}'
-
-if [[ -e $backup_file ]] {
- mv $backup_file $store_file
-}