Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
6e2c8d0c
Commit
6e2c8d0c
authored
Feb 16, 2022
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtests: Improve exception output.
parent
9494ec3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
runtests.py
runtests.py
+2
-5
No files found.
runtests.py
View file @
6e2c8d0c
...
@@ -2514,21 +2514,18 @@ def runtests(options, cmd_args, coverage=None):
...
@@ -2514,21 +2514,18 @@ def runtests(options, cmd_args, coverage=None):
# Run the collected tests.
# Run the collected tests.
try:
try:
if options.shard_num > -1:
if options.shard_num > -1:
sys.stderr.write("Tests in shard %d
starting" % options.shard_num
)
sys.stderr.write("Tests in shard %d
/%d starting
\
n
" % (options.shard_num, options.shard_count)
)
result = test_runner.run(test_suite)
result = test_runner.run(test_suite)
except Exception as exc:
except Exception as exc:
# Make sure we print exceptions also from shards.
# Make sure we print exceptions also from shards.
if options.shard_num > -1:
if options.shard_num > -1:
sys.stderr.write("Tests in shard %d
crashed: %s" % (options.shard_num
, exc))
sys.stderr.write("Tests in shard %d
/%d crashed: %s
\
n
" % (options.shard_num, options.shard_count
, exc))
import traceback
import traceback
traceback.print_exc()
traceback.print_exc()
raise
raise
finally:
finally:
if enable_faulthandler:
if enable_faulthandler:
faulthandler.disable()
faulthandler.disable()
if options.shard_num > -1:
sys.stderr.write("Tests in shard %d terminated (%s)" % (
options.shard_num, sys.exc_info()[1] or "no crash"))
if common_utility_dir and options.shard_num < 0 and options.cleanup_workdir:
if common_utility_dir and options.shard_num < 0 and options.cleanup_workdir:
shutil.rmtree(common_utility_dir)
shutil.rmtree(common_utility_dir)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment