mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
erlang: remove quiet mode from grep in test version checks
Remove the quiet mode flag (-q) from grep in version check commands to ensure that their stdout output is visible. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
1 parent
7fb98c160d
commit
ca04783f33
2 files changed
+2
-2
No files matched your search
@@ -6,6 +6,6 @@ erlang)
|
||||
timeout 60s erl -noshell \
|
||||
-eval "V = erlang:system_info(otp_release), io:format(\"OTP ~s~n\", [V])" \
|
||||
-s init stop 2>&1 | \
|
||||
grep -qF "OTP ${otp_major}"
|
||||
grep -F "OTP ${otp_major}"
|
||||
;;
|
||||
esac
|
||||
+1
-1
@@ -5,7 +5,7 @@ erlang)
|
||||
# Check erl binary is present and prints the right OTP version
|
||||
otp_major="${2%%.*}"
|
||||
timeout 60s erl -noshell -eval "V = erlang:system_info(otp_release), io:format(\"OTP ~s~n\", [V])" -s init stop 2>&1 | \
|
||||
grep -qF "OTP ${otp_major}" || {
|
||||
grep -F "OTP ${otp_major}" || {
|
||||
echo "FAIL: erl did not report expected OTP version '$2' (major: $otp_major)"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user