From 9a780d7de74a2dd870a6c4665479096d44c41381 Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Wed, 28 Mar 2018 11:42:00 -0400 Subject: Replace call_trace_check with more reliable oops_check.sh script and matching job definition. LP: #1759614 --- units/miscellanea/jobs.pxu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'units/miscellanea') diff --git a/units/miscellanea/jobs.pxu b/units/miscellanea/jobs.pxu index 10df43dd..6727683d 100644 --- a/units/miscellanea/jobs.pxu +++ b/units/miscellanea/jobs.pxu @@ -365,10 +365,10 @@ _summary: Attach the baseline sosreport file plugin: shell category_id: com.canonical.plainbox::miscellanea estimated_duration: 0.5 -id: miscellanea/call-trace-check -command: if [ -n "$(grep "Call Trace:" /var/log/syslog)" ]; then echo "Call Trace detected in syslog"; false; else true; fi -_summary: Check syslog for call traces -_description: Checks syslog for call traces after testing is complete. +id: miscellanea/oops-check +command: oops_check.sh +_summary: Check syslog for oopses +_description: Checks syslog for oopses after testing is complete. flags: preserve-locale plugin: attachment -- cgit v1.2.3 From 4b620fa120551d0e9acdb15029baa8c63e24b0b2 Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Wed, 28 Mar 2018 14:14:10 -0400 Subject: removed job definitions for call_trace_check --- units/miscellanea/jobs.pxu | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'units/miscellanea') diff --git a/units/miscellanea/jobs.pxu b/units/miscellanea/jobs.pxu index 6727683d..ee54f230 100644 --- a/units/miscellanea/jobs.pxu +++ b/units/miscellanea/jobs.pxu @@ -361,21 +361,3 @@ user: root command: SOSFILE=`ls -t $PLAINBOX_SESSION_SHARE/sosreport*xz | head -1`; [ -e ${SOSFILE} ] && cat $SOSFILE _summary: Attach the baseline sosreport file - -plugin: shell -category_id: com.canonical.plainbox::miscellanea -estimated_duration: 0.5 -id: miscellanea/oops-check -command: oops_check.sh -_summary: Check syslog for oopses -_description: Checks syslog for oopses after testing is complete. -flags: preserve-locale - -plugin: attachment -category_id: com.canonical.plainbox::miscellanea -estimated_duration: 0.5 -id: miscellanea/attach-syslog -command: if [ -n "$(grep "Call Trace:" /var/log/syslog)" ]; then cat /var/log/syslog; fi -_summary: Attach syslog if Call Trace appears -_description: Attaches a copy of syslog if call traces are present after testing is complete. -flags: preserve-locale -- cgit v1.2.3