From 5cb689875e3fc9e231663f2ecfc1d146c4451021 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 25 Jan 2015 19:48:25 +0100 Subject: [PATCH] tests: abort if setup fails! Otherwise the user's auth file might get removed. --- tests/_autoenv_stack.t | 2 +- tests/_autoenv_utils.t | 2 +- tests/autoenv.t | 2 +- tests/cwd.t | 2 +- tests/leave.t | 2 +- tests/recurse-upwards.t | 2 +- tests/varstash.t | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/_autoenv_stack.t b/tests/_autoenv_stack.t index 6f659c6..de919a1 100644 --- a/tests/_autoenv_stack.t +++ b/tests/_autoenv_stack.t @@ -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. diff --git a/tests/_autoenv_utils.t b/tests/_autoenv_utils.t index 3da1fde..8e47a15 100644 --- a/tests/_autoenv_utils.t +++ b/tests/_autoenv_utils.t @@ -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. diff --git a/tests/autoenv.t b/tests/autoenv.t index aef6bb9..7618385 100644 --- a/tests/autoenv.t +++ b/tests/autoenv.t @@ -1,4 +1,4 @@ - $ source $TESTDIR/setup.sh + $ source $TESTDIR/setup.sh || return 1 Lets set a simple .env action diff --git a/tests/cwd.t b/tests/cwd.t index e0ae132..9a0bd13 100644 --- a/tests/cwd.t +++ b/tests/cwd.t @@ -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. diff --git a/tests/leave.t b/tests/leave.t index fb7ee37..ad70e2f 100644 --- a/tests/leave.t +++ b/tests/leave.t @@ -1,4 +1,4 @@ - $ source $TESTDIR/setup.sh + $ source $TESTDIR/setup.sh || return 1 Lets set a simple .env action diff --git a/tests/recurse-upwards.t b/tests/recurse-upwards.t index 68f79be..20a35d1 100644 --- a/tests/recurse-upwards.t +++ b/tests/recurse-upwards.t @@ -1,6 +1,6 @@ Test recursing into parent .env files. - $ source $TESTDIR/setup.sh + $ source $TESTDIR/setup.sh || return 1 Setup env actions / output. diff --git a/tests/varstash.t b/tests/varstash.t index 487230b..85d665f 100644 --- a/tests/varstash.t +++ b/tests/varstash.t @@ -1,6 +1,6 @@ Test varstash integration. - $ source $TESTDIR/setup.sh + $ source $TESTDIR/setup.sh || return 1 Setup test environment.