mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-24 10:26:38 +00:00
19 lines
274 B
Bash
19 lines
274 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
cd "${0%/*}" || exit 1
|
||
|
|
||
|
failFunction() {
|
||
|
false
|
||
|
}
|
||
|
|
||
|
# Must be sourced to use functions
|
||
|
# shellcheck disable=SC1091
|
||
|
. ../mo
|
||
|
mo --fail-on-function 2>&1 <<EOF
|
||
|
Fail on function? {{failFunction}}
|
||
|
EOF
|
||
|
|
||
|
if [[ $? -ne 1 ]]; then
|
||
|
echo "Did not return 1"
|
||
|
fi
|