mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
housekeeping: shellcheck for tests/functional/function-trace.sh
This commit is contained in:
parent
b764dd9aa4
commit
cd46ec17f9
@ -21,12 +21,12 @@ expect_trace() {
|
||||
<(echo "$expect") \
|
||||
<(echo "$actual")
|
||||
) && result=0 || result=$?
|
||||
if [ $result -eq 0 ]; then
|
||||
if [ "$result" -eq 0 ]; then
|
||||
echo " ok."
|
||||
else
|
||||
echo " failed. difference:"
|
||||
echo "$msg"
|
||||
return $result
|
||||
return "$result"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user