mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
18 lines
318 B
Diff
18 lines
318 B
Diff
Don't overwhelm console with test output...
|
|
|
|
--- a/test.sh
|
|
+++ b/test.sh
|
|
@@ -24,7 +24,11 @@
|
|
|
|
for i in test/test*.lua
|
|
do
|
|
- "$lua" "$i"
|
|
+ "$lua" "$i" > "${i%.lua}.out" 2>&1 || {
|
|
+ echo "Tests failed, printing last 30 lines of the output..."
|
|
+ tail -n 30 "${i%.lua}.out"
|
|
+ exit 1
|
|
+ }
|
|
done
|
|
|
|
mkdir -p out
|