Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: autotest.py

Issue 10000013: Update to current version of the SpiderMonkey shell, adjust for thedifferent handling of for loops… (Closed)
Patch Set: Created April 3, 2013, 11:24 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « abp_rewrite.py ('k') | autotest/abprewrite_source.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest.py
===================================================================
--- a/autotest.py
+++ b/autotest.py
@@ -29,17 +29,17 @@ def run_tests():
name = match.group(2)
elif match and match.group(1).lower() == 'arguments':
arguments = match.group(2).split(' ')
handle.close()
if arguments == None:
continue
- command = [application, '-U', os.path.join(baseDir, 'jshydra.js'), file] + arguments
+ command = [application, os.path.join(baseDir, 'jshydra.js'), file] + arguments
out = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env).communicate()[0].replace('\r', '')
expected = open(file + '.expected', 'r').read().replace('\r', '')
if out == expected:
print '%s passed' % name
else:
print '%s failed! Log:' % name
for line in difflib.unified_diff(expected.split('\n'), out.split('\n'), fromfile=file + '.expected', tofile=file + '.output'):
print line
« no previous file with comments | « abp_rewrite.py ('k') | autotest/abprewrite_source.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld