tests: robustify again buggy shells

* tests/init.sh (check_strace): Use "${parameter:-word}" shell syntax
instead of "${parameter-word}".

Reported-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Дмитрий Левин 2012-03-15 20:17:49 +00:00
parent 3362e89f66
commit 84abf70011

View File

@ -16,7 +16,7 @@ check_prog()
check_strace()
{
STRACE=${*-../strace}
STRACE=${*:-../strace}
$STRACE -V > /dev/null ||
framework_failure_ "$STRACE is not available"
}