# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1351112971 -7200
# Node ID 380eea1f5add6c3e37e886ebdb5dd83dcadd01b8
# Parent  d98134ae80ba288def09864ca4d26d343a8f66a3
run-tests: skip unnecessary operations on the args in the child proces

The arguments are already sorted and never empty.

[ original upstream message ]

diff -r d98134ae80ba -r 380eea1f5add tests/run-tests.py
--- a/tests/run-tests.py	Sun Oct 21 16:10:04 2012 +0100
+++ b/tests/run-tests.py	Wed Oct 24 23:09:31 2012 +0200
@@ -1170,9 +1170,9 @@
 
         checktools()
 
-    if len(args) == 0:
-        args = os.listdir(".")
-    args.sort()
+        if len(args) == 0:
+            args = os.listdir(".")
+        args.sort()
 
     tests = args