From 70c775a810e68f274fb7963faa7d787e04a9b68f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 30 Jun 2017 13:14:04 -0700 Subject: test: run abort tests Currently, tests in test/abort do not run in CI. This change configures the test runner to not write core files for abort tests and to run them. PR-URL: https://github.com/nodejs/node/pull/14013 Fixes: https://github.com/nodejs/node/issues/14012 Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann Reviewed-By: Ben Noordhuis Reviewed-By: Michael Dawson Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Yuta Hiroto Reviewed-By: Sakthipriyan Vairamani --- test/testpy/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/testpy') diff --git a/test/testpy/__init__.py b/test/testpy/__init__.py index 0efabae02c..37e5ac710b 100644 --- a/test/testpy/__init__.py +++ b/test/testpy/__init__.py @@ -180,3 +180,15 @@ class AsyncHooksTestConfiguration(SimpleTestConfiguration): for test in result: test.parallel = True return result + +class AbortTestConfiguration(SimpleTestConfiguration): + def __init__(self, context, root, section, additional=None): + super(AbortTestConfiguration, self).__init__(context, root, section, + additional) + + def ListTests(self, current_path, path, arch, mode): + result = super(AbortTestConfiguration, self).ListTests( + current_path, path, arch, mode) + for test in result: + test.disable_core_files = True + return result -- cgit v1.2.3