[seed] Tests: run-tests script should only output filename, not full path



commit d48f73c4f9692ed0cde61af36d0648e9651b574e
Author: Tim Horton <hortont svn gnome org>
Date:   Wed May 13 06:05:51 2009 -0400

    Tests: run-tests script should only output filename, not full path
---
 tests/run-tests.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/run-tests.py b/tests/run-tests.py
index f70eb0a..d1e1eff 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -16,8 +16,8 @@ failed = []
 mcwd = os.getcwd()
 
 for root, dirs, files in os.walk(os.path.join(mcwd,"javascript")):
-	for f in files:
-		f = os.path.join(root, f)
+	for filename in files:
+		f = os.path.join(root, filename)
 		if f.endswith(".js") and not f.endswith("_.js"):
 			attempts = 0
 			while attempts < 10:
@@ -43,16 +43,16 @@ for root, dirs, files in os.walk(os.path.join(mcwd,"javascript")):
 					err.close()
 				
 					if not re.match(test_out,run_out):
-						failed.append([f,test_out,run_out,0,run_err])
+						failed.append([filename,test_out,run_out,0,run_err])
 						sys.stdout.write("x")
 					elif not re.match(test_err,run_err):
-						failed.append([f,test_err,run_err,1])
+						failed.append([filename,test_err,run_err,1])
 						sys.stdout.write("x")
 					elif p.returncode != test_retval:
-						failed.append([f,test_retval,p.returncode,2]);
+						failed.append([filename,test_retval,p.returncode,2]);
 						sys.stdout.write("x")
 					else:
-						passed.append([f])
+						passed.append([filename])
 						sys.stdout.write(".")
 						sys.stdout.flush()
 					break



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]