# -*-sh-*-
-function findup() {
+# Exit on first error
+set -e
+
+findup() {
local arg="$1"
if test -z "$arg"; then return 1; fi
cd $wd
}
-function error() {
+error() {
echo $1 > _error
exit 1
}
-function canttest() {
- echo $1 > _error
- exit 2
+canttest() {
+ [ -f _canttest ] || echo $1 > _canttest
+ exit 1
}
if [ -z "$OMK_TESTSROOT" ]; then