diff options
Diffstat (limited to 'karm/test/__lib.sh')
-rw-r--r-- | karm/test/__lib.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/karm/test/__lib.sh b/karm/test/__lib.sh index 06fd9df62..0f8be7bbd 100644 --- a/karm/test/__lib.sh +++ b/karm/test/__lib.sh @@ -1,7 +1,7 @@ # Expects karm test file in $TESTFILE # Returns dcop id in $DCOP_ID -function set_up() +set_up() { DCOPID=`dcop 2>/dev/null | grep karm` @@ -44,7 +44,7 @@ function set_up() then break else - let "idx += 1" + idx=$(( idx + 1 )) fi sleep 1 done @@ -64,12 +64,12 @@ function set_up() fi } -function test_func() +test_func() { echo "Yep, that works." } -function tear_down() +tear_down() { if [ -n "$DCOPID" ]; then dcop "$DCOPID" KarmDCOPIface quit; fi; |