summaryrefslogtreecommitdiffstats
path: root/scripts/split-error-log.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-03-24 10:59:52 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-03-24 11:04:05 +0100
commit50cccb032d3bf7386bbae53ecbb54c3944cb1234 (patch)
tree034803c444ed2f81f3db8d485dae57784588364c /scripts/split-error-log.awk
parentc66053648e5163b246eb442d6311a9da41bf49e0 (diff)
downloadptxdist-50cccb032d3bf7386bbae53ecbb54c3944cb1234.tar.gz
ptxdist-50cccb032d3bf7386bbae53ecbb54c3944cb1234.tar.xz
split-error-log: handle image stages
Add the check to find failing images stages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/split-error-log.awk')
-rwxr-xr-xscripts/split-error-log.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/split-error-log.awk b/scripts/split-error-log.awk
index d58aec8ec..266247239 100755
--- a/scripts/split-error-log.awk
+++ b/scripts/split-error-log.awk
@@ -42,8 +42,8 @@ function drop(stage) {
last = $0
}
-/.*platform.*\/state\/.*\..*\] Error [1-9][0-9]*$/ {
- stage = gensub(/.*\/state\/(.+\..+)\] Error.*/, "\\1", 1, $0)
+/.*platform.*\/(state|images)\/.*\..*\] Error [1-9][0-9]*$/ {
+ stage = gensub(/.*\/(state|images)\/(.+\..+)\] Error.*/, "\\2", 1, $0)
targetfile = FILENAME "." stage ".txt"
print targetfile