mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2026-10-15 21:48:22 +03:00
tests: abort if setup fails!
Otherwise the user's auth file might get removed.
This commit is contained in:
1 parent
e07a47f566
commit
5cb689875e
7 files changed
+7
-7
No files matched your search
@@ -1,6 +1,6 @@
|
||||
Tests for internal stack handling.
|
||||
|
||||
$ source $TESTDIR/setup.sh
|
||||
$ source $TESTDIR/setup.sh || return 1
|
||||
|
||||
Non-existing entries are allowed and handled without error.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Tests for internal util methods.
|
||||
|
||||
$ source $TESTDIR/setup.sh
|
||||
$ source $TESTDIR/setup.sh || return 1
|
||||
|
||||
Non-existing entries are allowed and handled without error.
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
$ source $TESTDIR/setup.sh
|
||||
$ source $TESTDIR/setup.sh || return 1
|
||||
|
||||
Lets set a simple .env action
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
Test $PWD, $autoenv_event, $autoenv_from_dir and $autoenv_to_dir.
|
||||
|
||||
$ source $TESTDIR/setup.sh
|
||||
$ source $TESTDIR/setup.sh || return 1
|
||||
|
||||
Setup env actions / output.
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
$ source $TESTDIR/setup.sh
|
||||
$ source $TESTDIR/setup.sh || return 1
|
||||
|
||||
Lets set a simple .env action
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Test recursing into parent .env files.
|
||||
|
||||
$ source $TESTDIR/setup.sh
|
||||
$ source $TESTDIR/setup.sh || return 1
|
||||
|
||||
Setup env actions / output.
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
Test varstash integration.
|
||||
|
||||
$ source $TESTDIR/setup.sh
|
||||
$ source $TESTDIR/setup.sh || return 1
|
||||
|
||||
Setup test environment.
|
||||
|
||||
|
||||
Reference in new issue
Block a user