Only escape the executable python string itself on the display line.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 27 Jan 2010 01:55:50 +0000 (01:55 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 27 Jan 2010 01:55:50 +0000 (01:55 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4651 fdb21ef1-2011-0410-befe-b5e4ea1792b1

runtest.py

index a4dcee416078e921ce7e9d4ef4ede2364c19997c..a927940585c7ddd08e9832f483774dc1166c7447 100644 (file)
@@ -761,11 +761,12 @@ else:
 
 total_start_time = time_func()
 for t in tests:
-    t.command_args = [python, '-tt']
+    command_args = ['-tt']
     if debug:
-        t.command_args.append(debug)
-    t.command_args.append(t.path)
-    t.command_str = string.join(map(escape, t.command_args), " ")
+        command_args.append(debug)
+    command_args.append(t.path)
+    t.command_args = [python] + command_args
+    t.command_str = string.join([escape(python)] + command_args, " ")
     if printcommand:
         sys.stdout.write(t.command_str + "\n")
     test_start_time = time_func()