]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/functions.sh
Fixed test functions to work under dash shell
[omk.git] / tests / functions.sh
index 7eb0c5215842e29e4dc74c71ecf8bf846d2f89ac..6962ed26818a71a350533dd136398c445706e77d 100644 (file)
@@ -3,7 +3,7 @@
 # Exit on first error
 set -e
 
-function findup() {
+findup() {
     local arg="$1"
     if test -z "$arg"; then return 1; fi
 
@@ -20,12 +20,12 @@ function findup() {
     cd $wd
 }
 
-function error() {
+error() {
     echo $1 > _error
     exit 1
 }
 
-function canttest() {
+canttest() {
     [ -f _canttest ] || echo $1 > _canttest
     exit 1
 }