aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2023-01-09 10:49:35 +0100
committerPetr Štetiar <ynezz@true.cz>2023-01-09 11:22:10 +0100
commitf9653cbaac1bcb7fd15c83858f117c419ed59847 (patch)
tree16a5e94300b4a6752cd0333e963b23a6436980b6 /.github
parentd9de5252a44e208cecaa1e2edad3d1615b84302c (diff)
downloadupstream-f9653cbaac1bcb7fd15c83858f117c419ed59847.tar.gz
upstream-f9653cbaac1bcb7fd15c83858f117c419ed59847.tar.bz2
upstream-f9653cbaac1bcb7fd15c83858f117c419ed59847.zip
ci: show_build_failures: fix missing output for configure failures
We're currently missing log output in cases where `configure` fails which returns 77 as its error code: make[3]: *** [Makefile:118: elfutils-0.188/.configured_889556d2f423f99e091beece9c8d870a] Error 77 So lets adjust the regexps so they can handle multiple digits. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to '.github')
-rwxr-xr-x.github/workflows/scripts/show_build_failures.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/scripts/show_build_failures.sh b/.github/workflows/scripts/show_build_failures.sh
index 14f699c93d..7b1a021155 100755
--- a/.github/workflows/scripts/show_build_failures.sh
+++ b/.github/workflows/scripts/show_build_failures.sh
@@ -5,9 +5,9 @@ log_dir_path="${1:-logs}"
context="${2:-10}"
show_make_build_errors() {
- grep -slr 'make\[[[:digit:]]\].*Error [[:digit:]]$' "$log_dir_path" | while IFS= read -r log_file; do
+ grep -slr 'make\[[[:digit:]]\+\].*Error [[:digit:]]\+$' "$log_dir_path" | while IFS= read -r log_file; do
printf "====== Make errors from %s ======\n" "$log_file";
- grep -r -C"$context" 'make\[[[:digit:]]\].*Error [[:digit:]]$' "$log_file" ;
+ grep -r -C"$context" 'make\[[[:digit:]]\+\].*Error [[:digit:]]\+$' "$log_file" ;
done
}