Skip to content

Commit

Permalink
Add information about JS test status to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbasta committed Jul 16, 2013
1 parent 6814742 commit 18e3c3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appvalidator/testcases/scripting.py
Expand Up @@ -20,6 +20,7 @@ def test_js_file(err, filename, data, line=0, context=None):
err and err.get_resource("SPIDERMONKEY") or
SPIDERMONKEY_INSTALLATION)
if not tree:
err.metadata.ran_js_tests = "no;missing ast"
if err is not None:
err.set_tier(before_tier)
return
Expand All @@ -28,6 +29,8 @@ def test_js_file(err, filename, data, line=0, context=None):
err, filename, line, context=context or ContextGenerator(data))
trav.run(tree)

err.metadata.ran_js_tests = "yes"

# Reset the tier so we don't break the world
if err is not None:
err.set_tier(before_tier)

0 comments on commit 18e3c3f

Please sign in to comment.