[Asterisk-code-review] Expand checks for core dumps. (testsuite[master])
Corey Farrell
asteriskteam at digium.com
Sat May 30 23:28:11 CDT 2015
Corey Farrell has uploaded a new change for review.
https://gerrit.asterisk.org/553
Change subject: Expand checks for core dumps.
......................................................................
Expand checks for core dumps.
Tests using lua (asttest) change to the test directory. This causes
any core dumps from Asterisk to be placed there instead of the
testsuite root directory as expected. Running with the -V option
produces a file named vgcore.${PID}. These variations of name and
location are now recognized and processed.
Change-Id: Idf83bff672cb4c3559214864498a9baf404c1fc5
---
M runtests.py
1 file changed, 9 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/53/553/1
diff --git a/runtests.py b/runtests.py
index 17d7ff7..bf773e9 100755
--- a/runtests.py
+++ b/runtests.py
@@ -150,11 +150,18 @@
self.time = time.time() - start_time
def _check_for_core(self):
- contents = os.listdir('.')
core_files = []
+
+ contents = os.listdir('.')
for item in contents:
- if item.startswith('core'):
+ if item.startswith('core') or item.startswith('vgcore'):
core_files.append(item)
+
+ contents = os.listdir(self.test_name)
+ for item in contents:
+ if item.startswith('core') or item.startswith('vgcore'):
+ core_files.append(os.path.join(self.test_name, item))
+
return core_files
def _archive_core_dumps(self, core_dumps):
--
To view, visit https://gerrit.asterisk.org/553
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf83bff672cb4c3559214864498a9baf404c1fc5
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
More information about the asterisk-code-review
mailing list