aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 15:18:32 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 15:18:32 -0500
commit9213a44a94985fadfb9157f9eee847fe1175bcde (patch)
treeefe7a0d13970b1282d452af5575598ac00bc1cc7
parent01e21e541251d271d28e92b2c6b28a8290994470 (diff)
Pass the absolute file name to the web browser
This fixes the failure to launch files in a web browser on Mac.
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 126071a0..802c5089 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5531,7 +5531,7 @@ f.close()
# Finally, do some web browser tests
def run_browser(html_file, message):
- webbrowser.open_new(html_file)
+ webbrowser.open_new(os.path.abspath(html_file))
print 'A web browser window should have opened a page containing the results of a part of this test.'
print 'You need to manually look at the page to see that it works ok: ' + message
print '(sleeping for a bit to keep the directory alive for the web browser..)'