Changeset 106460 in webkit


Ignore:
Timestamp:
Feb 1, 2012 2:37:14 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt][WK2] run-webkit-tests --qt crashes if WEBKIT_TESTFONTS is not set
https://bugs.webkit.org/show_bug.cgi?id=77466

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2012-02-01
Reviewed by Kenneth Rohde Christiansen.

Replicate the behavior of old-run-webkit-tests and check if WEBKIT_TESTFONTS
is set or if we should raise an error.

  • Scripts/webkitpy/layout_tests/port/qt.py:

(QtPort.setup_environ_for_server):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r106445 r106460  
     12012-02-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        [Qt][WK2] run-webkit-tests --qt  crashes if WEBKIT_TESTFONTS is not set
     4        https://bugs.webkit.org/show_bug.cgi?id=77466
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Replicate the behavior of old-run-webkit-tests and check if WEBKIT_TESTFONTS
     9        is set or if we should raise an error.
     10
     11        * Scripts/webkitpy/layout_tests/port/qt.py:
     12        (QtPort.setup_environ_for_server):
     13
    1142012-02-01  Philippe Normand  <pnormand@igalia.com> and Sergio Villar Senin  <svillar@igalia.com>
    215
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/qt.py

    r105183 r106460  
    3232import re
    3333import sys
     34import os
    3435
    3536import webkit
     
    133134
    134135    def setup_environ_for_server(self, server_name=None):
     136        if not 'WEBKIT_TESTFONTS' in os.environ:
     137            print "\n\nThe WEBKIT_TESTFONTS environment variable is not defined or not set properly"
     138            print "You must set it before running the tests."
     139            print "Use git to grab the actual fonts from http://gitorious.org/qtwebkit/testfonts\n"
     140            sys.exit(1)
    135141        clean_env = WebKitPort.setup_environ_for_server(self, server_name)
    136142        clean_env['QTWEBKIT_PLUGIN_PATH'] = self._build_path('lib/plugins')
Note: See TracChangeset for help on using the changeset viewer.