[tests] Define unbound variables in test scripts

This commit is contained in:
Alexander Todorov 2019-06-06 12:41:31 +03:00 committed by Martin Pitt
parent 649a9e2239
commit b725eb141a
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@
set -eu
export BEAKERLIB_DIR=$(mktemp -d /tmp/composer-test.XXXXXX)
CLI="${CLI:-}"
function setup_tests {
local share_dir=$1

View File

@ -1,5 +1,9 @@
#!/bin/sh
top_srcdir="${top_srcdir:-}"
top_buildir="${top_builddir:-}"
PYTHONPATH="${PYTHONPATH:-}"
if [ -z "$top_srcdir" ]; then
echo "*** top_srcdir must be set"
exit 1