@@@ tests: -e (errexit) shell option in scripts, where possible

Some test scripts run programs that return non-zero values for correct
outcome; those would fail the shell -e checks.

But some scripts not using -e are fine with it because we expect zero or
the error condition is handled otherwise. So, for robustness, the option is
added into them.
This commit is contained in:
deesix 2021-01-31 00:00:00 +01:00
parent cb27e5314a
commit 17c4c6b977
16 changed files with 16 additions and 16 deletions

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
TMPDIR="test/test0021/tmp-knight-posix"
mkdir -p ${TMPDIR}

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
TMPDIR="test/test0022/tmp-knight-posix"
mkdir -p ${TMPDIR}

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
TMPDIR="test/test0023/tmp-knight-posix"
mkdir -p ${TMPDIR}

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
TMPDIR="test/test0100/tmp-knight-posix"
mkdir -p ${TMPDIR}

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
TMPDIR="test/test0101/tmp-knight-posix"
mkdir -p ${TMPDIR}

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
TMPDIR="test/test0102/tmp-knight-posix"
mkdir -p ${TMPDIR}

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
TMPDIR="test/test0103/tmp-knight-posix"
mkdir -p ${TMPDIR}

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh

View File

@ -16,7 +16,7 @@
## You should have received a copy of the GNU General Public License
## along with M2-Planet. If not, see <http://www.gnu.org/licenses/>.
set -x
set -ex
ARCH="$1"
. test/env.inc.sh