Ktest: Use dodie for critical falures
authorTim Tianyang Chen <tianyang.chen@oracle.com>
Mon, 26 Mar 2018 20:08:03 +0000 (13:08 -0700)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Apr 2018 18:27:29 +0000 (14:27 -0400)
commitdf46fce692a649559d64da2826d355b4f28fc526
tree4c2b7ed78a1f6a581cf97103ce3a9a5bce5d1298
parent92db453e7eeb44efd43e977fa5ab417274834a9a
Ktest: Use dodie for critical falures

Users should get emails when the script dies because of a critical failure.
Critical failures are defined as any errors that could abnormally terminate
the script.

In order to add email support, this patch converts all die() to dodie() except:
 * when '-v' is used as an option to get the version of the script.
 * in Sig-Int handeler because it's not a fatal error to cancel the script.
 * errors happen during parsing config

Link: http://lkml.kernel.org/r/1522094884-22718-4-git-send-email-tianyang.chen@oracle.com
Suggested-by: Dhaval Giani <dhaval.giani@oracle.com>
Signed-off-by: Tim Tianyang Chen <tianyang.chen@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl