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:
parent
3362e89f66
commit
84abf70011
@ -16,7 +16,7 @@ check_prog()
|
||||
|
||||
check_strace()
|
||||
{
|
||||
STRACE=${*-../strace}
|
||||
STRACE=${*:-../strace}
|
||||
$STRACE -V > /dev/null ||
|
||||
framework_failure_ "$STRACE is not available"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user