diff options
author | PMR <pmr@pmr-lander> | 2017-08-22 21:35:33 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2017-08-22 21:35:33 +0000 |
commit | 79b000aa33b350612927bfbeebcc84237f75d822 (patch) | |
tree | 5f00fbf09a824e010d1ea01a192b5afcec5361fe | |
parent | d2299fcc5b983d947a93dd7f14fcc9c5ebdb7388 (diff) | |
parent | bfea0b533cd1e747fe48389b32409f2108e3f470 (diff) |
Merge #329229 from ~bladernr/plainbox-provider-checkbox:add-syslog-calltrace-check
-rw-r--r-- | jobs/miscellanea.txt.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/jobs/miscellanea.txt.in b/jobs/miscellanea.txt.in index 654ce26..a162dce 100644 --- a/jobs/miscellanea.txt.in +++ b/jobs/miscellanea.txt.in @@ -358,3 +358,21 @@ user: root command: SOSFILE=`ls -t $PLAINBOX_SESSION_SHARE/sosreport*xz | head -1`; [ -e ${SOSFILE} ] && base64 $SOSFILE _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. +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 |