diff options
Diffstat (limited to 'tests/common.sh')
-rw-r--r-- | tests/common.sh | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/tests/common.sh b/tests/common.sh index b5c7f71..2075558 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -25,25 +25,22 @@ BUILDDIR="${PWD}/.." ob_use() { - _ob_local _obu_module + local module= if [ "${#}" -eq 1 ]; then - _obu_module="${1}" + module="${1}" else - _ob_return 125 - return ${?} + return 125 fi - _obu_module="${BUILDDIR}/lib/${_obu_module}.sm" - if [ -r "${_obu_module}" ]; then - . "${_obu_module}" + module="${BUILDDIR}/lib/${module}.sm" + if [ -r "${module}" ]; then + . "${module}" else - _ob_return 1 - return ${?} + return 1 fi - _ob_return 0 - return ${?} + return 0 } test_assert() |