From f5d21c4c38be117a112d033551263923ae97a425 Mon Sep 17 00:00:00 2001 From: Kevin Daudt Date: Fri, 19 Apr 2019 22:20:19 +0000 Subject: community/mtd-utils: log output of test-suite on fail --- community/mtd-utils/APKBUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'community') diff --git a/community/mtd-utils/APKBUILD b/community/mtd-utils/APKBUILD index 36396d1887..6b52c0eff0 100644 --- a/community/mtd-utils/APKBUILD +++ b/community/mtd-utils/APKBUILD @@ -49,8 +49,14 @@ build() { make } +_cat_found_file() { + local _rc="$?" + find -name "$1" -type f -ls -printf '%P {{{\n' -exec cat -v -n '{}' ';' -printf '}}} %P\n' + return "$_rc" +} + check() { - make check + make check || _cat_found_file 'test-suite.log' } flash() { -- cgit v1.2.3