aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'testrunner/runner.py')
-rw-r--r--testrunner/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testrunner/runner.py b/testrunner/runner.py
index a1067cb04c..19ba78b976 100644
--- a/testrunner/runner.py
+++ b/testrunner/runner.py
@@ -101,7 +101,9 @@ def dry_run(args, cwd, out, timeout=None):
return 0
def getsignalname(n):
- for name, value in signal.__dict__.items():
+ # "sorted()" to pick a deterministic answer in case of synonyms.
+ # Also, getting SIGABRT is more understandable than SIGIOT...
+ for name, value in sorted(signal.__dict__.items()):
if value == n and name.startswith('SIG'):
return name
return 'signal %d' % (n,)