[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 04/05: ci: print test logs upon failure
From: |
gnunet |
Subject: |
[taler-exchange] 04/05: ci: print test logs upon failure |
Date: |
Mon, 04 Sep 2023 20:50:47 +0200 |
This is an automated email from the git hooks/post-receive script.
devan-carpenter pushed a commit to branch master
in repository exchange.
commit 11ae7c42c5be25bd952a52c9678d15d22966f8ab
Author: Devan Carpenter <devan@taler.net>
AuthorDate: Mon Sep 4 13:41:55 2023 -0400
ci: print test logs upon failure
---
ci/jobs/1-test/test.sh | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/ci/jobs/1-test/test.sh b/ci/jobs/1-test/test.sh
index 20685d8e..64be6325 100755
--- a/ci/jobs/1-test/test.sh
+++ b/ci/jobs/1-test/test.sh
@@ -7,4 +7,22 @@ set -exuo pipefail
--disable-doc
make
make install
-make check
+
+check_command()
+{
+ make check
+}
+
+print_logs()
+{
+ for i in $(cat src/util/test-suite.log | grep '^FAIL:' | cut -d' ' -f
2)
+ do
+ echo Printing $i.log:
+ tail src/util/$i.log
+ done
+}
+
+if ! check_command ; then
+ print_logs
+ exit 1
+fi
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.