aports/community/lua-dromozoa-utf8/test.sh.patch
Jakub Jirutka 88be28287b community/lua-dromozoa-utf8: downgrade to 1.11
Upstream removed release 2.0 and continue with 1.x... >_<
2018-05-24 02:51:31 +02:00

18 lines
350 B
Diff

Don't overwhelm console with test output...
--- a/test.sh
+++ b/test.sh
@@ -24,7 +24,11 @@
do
case X$# in
X0) lua "$i";;
- *) "$@" "$i";;
+ *) "$@" "$i" > "${i%.lua}.out" 2>&1 || {
+ echo "Tests failed, printing last 30 lines of the output..."
+ tail -n 30 "${i%.lua}.out"
+ exit 1
+ };;
esac
done