reftest-debugger.py (565B)
1 #!/usr/bin/python 2 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 from __future__ import print_function 8 import subprocess 9 10 with open('reftest.log', "w") as out: 11 try: 12 subprocess.check_call(['script/headless.py', 'reftest'], stdout=out) 13 print("All tests passed.") 14 except subprocess.CalledProcessError: 15 subprocess.check_call(['firefox', 'reftest-analyzer.xhtml#logurl=reftest.log'])