summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>2010-07-22 22:41:44 +0000
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>2010-07-22 22:41:44 +0000
commita465626377b8158c5a690a88214b6d349744ebb0 (patch)
tree0d07a55f97bd5cab131e9c2a20d0e6d2ccf958d4
parent00ee1ff5adb554cb15214d92c75849508d4faf34 (diff)
client test class: Small modification to order of steps on crash_handler_report()
First, cleanup the debugdir tmp file and restore the core pattern backup, then look for core dumps generated by the test. This changeset together with the previous one will make the cores to be discovered most of the time (before the collector script was too slow to write the cores, making crash_handler_report to check before they were written, hence missing them). git-svn-id: svn://test.kernel.org/autotest/trunk@4733 592f7852-d20e-0410-864c-8624ca9c26a4
-rw-r--r--client/bin/test.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/client/bin/test.py b/client/bin/test.py
index e5c4be3f..33f194ca 100644
--- a/client/bin/test.py
+++ b/client/bin/test.py
@@ -91,11 +91,6 @@ class test(common_test.base_test):
test, let the user know.
"""
if self.crash_handling_enabled:
- core_dirs = glob.glob('%s/crash.*' % self.debugdir)
- if core_dirs:
- logging.warning('Programs crashed during test execution:')
- for dir in core_dirs:
- logging.warning('Please verify %s for more info', dir)
# Remove the debugdir info file
os.unlink(self.debugdir_tmp_file)
# Restore the core pattern backup
@@ -104,6 +99,12 @@ class test(common_test.base_test):
self.core_pattern_backup)
except EnvironmentError:
pass
+ # Let the user know if core dumps were generated during the test
+ core_dirs = glob.glob('%s/crash.*' % self.debugdir)
+ if core_dirs:
+ logging.warning('Programs crashed during test execution')
+ for dir in core_dirs:
+ logging.warning('Please verify %s for more info', dir)
def runtest(job, url, tag, args, dargs):