# HG changeset patch # User Matt Mackall # Date 2013-05-24 18:48:25 # Node ID eee43d763f9fe83ed53f17cc25d1d2bf92c1e0c5 # Parent 050c6fae40d2c572af7c24b992a9c7b655c9f4f7 run-tests: regroup nested functions diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -874,6 +874,11 @@ def runone(options, test): def ignore(msg): result('i', (test, msg)) + def describe(ret): + if ret < 0: + return 'killed by signal %d' % -ret + return 'returned error code %d' % ret + if not os.path.exists(test): skip("doesn't exist") return None @@ -967,11 +972,6 @@ def runone(options, test): f.write(line) f.close() - def describe(ret): - if ret < 0: - return 'killed by signal %d' % -ret - return 'returned error code %d' % ret - if skipped: mark = 's' if out is None: # debug mode: nothing to parse