autotest: test sig is set correctly
Change-Id: Ifceef4aa4b13342788fedc47a275b23379c40f20
BUG=8466
TEST=User/KernelCrash and CrashSender tests
Review URL: http://codereview.chromium.org/4168011
diff --git a/client/bin/site_crash_test.py b/client/bin/site_crash_test.py
index 011c971..8144fe4 100644
--- a/client/bin/site_crash_test.py
+++ b/client/bin/site_crash_test.py
@@ -181,7 +181,7 @@
exec_name = exec_name_match.group(1)
else:
exec_name = None
- sig_match = re.search('Sig: (\S+)', output)
+ sig_match = re.search('sig: (\S+)', output)
if sig_match:
sig = sig_match.group(1)
else:
diff --git a/client/site_tests/logging_CrashSender/logging_CrashSender.py b/client/site_tests/logging_CrashSender/logging_CrashSender.py
index 4c6f06f..40586ab 100644
--- a/client/site_tests/logging_CrashSender/logging_CrashSender.py
+++ b/client/site_tests/logging_CrashSender/logging_CrashSender.py
@@ -25,11 +25,11 @@
raise error.TestFail('Missing board name %s in output' %
board_match.group(1))
# Get hwid
- hwclass = 'unknown'
+ hwclass = 'undefined'
if os.path.exists(_HWCLASS_PATH):
hwclass = utils.read_file(_HWCLASS_PATH)
if not ('HWClass: %s' % hwclass) in result['output']:
- raise error.TestFail('Missing hwclass %s in output' % hwclass)
+ raise error.TestFail('Expected hwclass %s in output' % hwclass)
def _check_simple_minidump_send(self, report):
diff --git a/client/site_tests/logging_KernelCrash/logging_KernelCrash.py b/client/site_tests/logging_KernelCrash/logging_KernelCrash.py
index f9ba990..63fa825 100644
--- a/client/site_tests/logging_KernelCrash/logging_KernelCrash.py
+++ b/client/site_tests/logging_KernelCrash/logging_KernelCrash.py
@@ -70,7 +70,7 @@
return
if not os.path.exists(kcrash_report):
- raise error.TestFail('Crash report gone')
+ raise error.TestFail('Crash report %s gone' % kcrash_report)
report_contents = utils.read_file(kcrash_report)
if not 'kernel BUG at fs/proc/breakme.c' in report_contents:
raise error.TestFail('Crash report has unexpected contents')
@@ -88,7 +88,7 @@
return
kcrash_report = self._get_kcrash_name()
if not os.path.exists(kcrash_report):
- raise error.TestFail('Crash report gone')
+ raise error.TestFail('Crash report %s gone' % kcrash_report)
result = self._call_sender_one_crash(
report=os.path.basename(kcrash_report))
if (not result['send_attempt'] or not result['send_success'] or