summaryrefslogtreecommitdiffstats
path: root/__root__
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-02-16 13:54:11 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-02-26 22:37:02 +0100
commit1f864c39228fc9bdd5f8c916f85c1108aed2eb54 (patch)
tree86dd04a3c280a3d8e20f2afef89ea4f69fdac811 /__root__
parent1eba3feca5ced56d7a111ef2256ef824a4183b90 (diff)
downloadclufter-1f864c39228fc9bdd5f8c916f85c1108aed2eb54.tar.gz
clufter-1f864c39228fc9bdd5f8c916f85c1108aed2eb54.tar.xz
clufter-1f864c39228fc9bdd5f8c916f85c1108aed2eb54.zip
run-{check,test}: remove bashisms (travis-friendly)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '__root__')
-rwxr-xr-x__root__/run-check2
-rwxr-xr-x__root__/run-tests2
2 files changed, 2 insertions, 2 deletions
diff --git a/__root__/run-check b/__root__/run-check
index f333e5e..3ed4545 100755
--- a/__root__/run-check
+++ b/__root__/run-check
@@ -161,4 +161,4 @@ EOF
return ${ret}
}
-[ "${1}" == "__norun__" ] || run_check "$@"
+[ "${1}" = "__norun__" ] || run_check "$@"
diff --git a/__root__/run-tests b/__root__/run-tests
index 2c456e4..432d975 100755
--- a/__root__/run-tests
+++ b/__root__/run-tests
@@ -90,6 +90,6 @@ trap 'ret=1' USR1
eval "{ ${DEBUG} ${CMD} ${ACC}; [ \$? -eq 0 ] || kill -USR1 \$\$; } ${TAIL}"
)
-[ "${RUNCHECK}" -eq 0 ] || run_check || let ret+=2
+[ "${RUNCHECK}" -eq 0 ] || run_check || ret=$((ret+2))
f() { return $1; }; f ${ret}