mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
cicd: Consider oom-killer a crash when processing logs.
This commit is contained in:
@@ -79,7 +79,7 @@ DPT_CFG=ben
|
|||||||
SCENARIO=tip-auto
|
SCENARIO=tip-auto
|
||||||
RPT_TMPDIR=${MY_TMPDIR}/lf_reports
|
RPT_TMPDIR=${MY_TMPDIR}/lf_reports
|
||||||
LF_SER_DEV=$(basename $LF_SERIAL)
|
LF_SER_DEV=$(basename $LF_SERIAL)
|
||||||
DUT_SER_DEV=$(basename $DUT_SERIAL)
|
DUT_SER_DEV=$(basename $AP_SERIAL)
|
||||||
LF_SER_LOG=$MY_TMPDIR/lanforge_console_log_$LF_SER_DEV.txt
|
LF_SER_LOG=$MY_TMPDIR/lanforge_console_log_$LF_SER_DEV.txt
|
||||||
DUT_SER_LOG=$MY_TMPDIR/dut_console_log_$DUT_SER_DEV.txt
|
DUT_SER_LOG=$MY_TMPDIR/dut_console_log_$DUT_SER_DEV.txt
|
||||||
REGLOG=$MY_TMPDIR/basic_regression_log_$$.txt
|
REGLOG=$MY_TMPDIR/basic_regression_log_$$.txt
|
||||||
|
|||||||
@@ -231,6 +231,7 @@ sub processLogs {
|
|||||||
($ln =~ /BUG:/) ||
|
($ln =~ /BUG:/) ||
|
||||||
($ln =~ /Hardware became unavailable during restart/) ||
|
($ln =~ /Hardware became unavailable during restart/) ||
|
||||||
($ln =~ /restarting hardware/) ||
|
($ln =~ /restarting hardware/) ||
|
||||||
|
($ln =~ /oom-killer/) ||
|
||||||
($ln =~ /crashed/)) {
|
($ln =~ /crashed/)) {
|
||||||
if ($ln =~ /WARNING:/) {
|
if ($ln =~ /WARNING:/) {
|
||||||
$warnings++;
|
$warnings++;
|
||||||
@@ -242,6 +243,7 @@ sub processLogs {
|
|||||||
$restarting++;
|
$restarting++;
|
||||||
}
|
}
|
||||||
elsif (($ln =~ /crashed/) || # software/firmware crashed
|
elsif (($ln =~ /crashed/) || # software/firmware crashed
|
||||||
|
($ln =~ /oom-killer/) || # System OOM, processes were force-killed by kernel
|
||||||
($ln =~ /became unavailable/)) { # hardware crashed
|
($ln =~ /became unavailable/)) { # hardware crashed
|
||||||
$crashed++;
|
$crashed++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user