<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>42947</bug_id>
          
          <creation_ts>2010-07-25 11:01:28 -0700</creation_ts>
          <short_desc>run-webkit-tests should check first for  $WEBKIT_TESTFONTS is set</short_desc>
          <delta_ts>2010-07-28 05:20:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mahesh Kulkarni">maheshk</reporter>
          <assigned_to name="Mahesh Kulkarni">maheshk</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dumi</cc>
    
    <cc>hausmann</cc>
    
    <cc>kling</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>255823</commentid>
    <comment_count>0</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-07-25 11:01:28 -0700</bug_when>
    <thetext>run-webkit-tests shows crashed for every test run on env where $WEBKIT_TESTFONTS is not set or not set to right font directory. 

Scripts should show error in this case and terminate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>255824</commentid>
    <comment_count>1</comment_count>
      <attachid>62526</attachid>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-07-25 11:42:34 -0700</bug_when>
    <thetext>Created attachment 62526
patch

Before running layoutTest check for WEBKIT_TESTFONTS set and exists</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>255861</commentid>
    <comment_count>2</comment_count>
      <attachid>62526</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-07-25 18:25:13 -0700</bug_when>
    <thetext>Comment on attachment 62526
patch

Change seems fine.

ChangeLog has a tab in it, so commit-queue would reject it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>255892</commentid>
    <comment_count>3</comment_count>
      <attachid>62540</attachid>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-07-25 21:11:33 -0700</bug_when>
    <thetext>Created attachment 62540
removed tab 

removed ChangeLog tabs for commit scripts to work</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>255904</commentid>
    <comment_count>4</comment_count>
      <attachid>62540</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-07-25 22:46:28 -0700</bug_when>
    <thetext>Comment on attachment 62540
removed tab 

Rejecting patch 62540 from commit-queue.

Failed to run &quot;[u&apos;/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/svn-apply&apos;, u&apos;--reviewer&apos;, u&apos;Darin Adler&apos;, u&apos;--force&apos;]&quot; exit_code: 1
Last 500 characters of output:
&apos;t find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: Scripts/old-run-webkit-tests
|===================================================================
|--- Scripts/old-run-webkit-tests	(revision 64021)
|+++ Scripts/old-run-webkit-tests	(working copy)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
patching file ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.

Full output: http://queues.webkit.org/results/3593499</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>256525</commentid>
    <comment_count>5</comment_count>
      <attachid>62526</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-27 05:04:09 -0700</bug_when>
    <thetext>Comment on attachment 62526
patch

Cleared Darin Adler&apos;s review+ from obsolete attachment 62526 so that this bug does not appear in http://webkit.org/pending-commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>256535</commentid>
    <comment_count>6</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-07-27 06:01:30 -0700</bug_when>
    <thetext>Committed r64123: &lt;http://trac.webkit.org/changeset/64123&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>256761</commentid>
    <comment_count>7</comment_count>
      <attachid>62540</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-27 12:42:50 -0700</bug_when>
    <thetext>Comment on attachment 62540
removed tab 

Seems it would be better to just check out the fonts for them and store them somewhere.  Like WebKitLibraries or the build directory or whatever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>256765</commentid>
    <comment_count>8</comment_count>
    <who name="Dumitru Daniliuc">dumi</who>
    <bug_when>2010-07-27 12:47:30 -0700</bug_when>
    <thetext>i don&apos;t think webkit&apos;s cygwin distribution comes with git (i don&apos;t have it), so i think we should either add it there, or at the very least change the error message on windows and tell users how to get the fonts without git.

also, out of curiosity, why did it become a problem now? were new tests added? and if those fonts are indeed needed by the gtk and win ports, then maybe they should be moved to a less qt-specific location?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>256779</commentid>
    <comment_count>9</comment_count>
      <attachid>62540</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-27 13:15:48 -0700</bug_when>
    <thetext>Comment on attachment 62540
removed tab 

Is isCygwin() right?  Won&apos;t that error for Apple&apos;s Win port?  Maybe it&apos;s right for it to do so?

If we don&apos;t have git, we could fail to auto-pull the fonts, but if we do, we should just pull them.  I also suspect it should be possible to pull them w/o git. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257035</commentid>
    <comment_count>10</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-07-27 22:30:30 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; i don&apos;t think webkit&apos;s cygwin distribution comes with git (i don&apos;t have it), so i think we should either add it there, or at the very least change the error message on windows and tell users how to get the fonts without git.
&gt; 

The total size of fonts used are 19.9MB. Would it be overkill to just add those to webkit svn repository? 

GIT is not mandatory. One could download the zip file from the location though. 

&gt; also, out of curiosity, why did it become a problem now? were new tests added? and if those fonts are indeed needed by the gtk and win ports, then maybe they should be moved to a less qt-specific location?

No new tests were added. When WEBKIT_TESTFONTS was wrong or not set &quot;run-webkit-tests&quot; shows crashed for every test case. This would mislead without any error message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257036</commentid>
    <comment_count>11</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-07-27 22:32:29 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (From update of attachment 62540 [details])
&gt; Is isCygwin() right?  Won&apos;t that error for Apple&apos;s Win port?  Maybe it&apos;s right for it to do so?
&gt; 

Apple&apos;s win port also uses testfont for layout testing. 

&gt; If we don&apos;t have git, we could fail to auto-pull the fonts, but if we do, we should just pull them.  I also suspect it should be possible to pull them w/o git. :)

I agree with your comment #7 suggestion, having it those fonts in trunk would make sense. As long as check-out of 20mb more is a problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257037</commentid>
    <comment_count>12</comment_count>
    <who name="Dumitru Daniliuc">dumi</who>
    <bug_when>2010-07-27 22:33:17 -0700</bug_when>
    <thetext>&gt; No new tests were added. When WEBKIT_TESTFONTS was wrong or not set &quot;run-webkit-tests&quot; shows crashed for every test case. This would mislead without any error message.

i don&apos;t think this is true. the win and gtk bots were happy to run all tests without these fonts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257045</commentid>
    <comment_count>13</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-07-27 23:40:41 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; &gt; No new tests were added. When WEBKIT_TESTFONTS was wrong or not set &quot;run-webkit-tests&quot; shows crashed for every test case. This would mislead without any error message.
&gt; 
&gt; i don&apos;t think this is true. the win and gtk bots were happy to run all tests without these fonts.

Actually if you check the patch,

 elsif (isGtk()) {
     $platform = &quot;gtk&quot;;
-    if (!$ENV{&quot;WEBKIT_TESTFONTS&quot;}) {
-        print &quot;The WEBKIT_TESTFONTS environment variable is not defined.\n&quot;;
-        print &quot;You must set it before running the tests.\n&quot;;
-        print &quot;Use git to grab the actual fonts from http://gitorious.org/qtwebkit/testfonts\n&quot;;
-        exit 1;
-    }

GTK always had this check. This patch just moves it to QT and win port as well. 
On #webkit IRC, I came to know apple&apos;s win port uses this env variable so isCygwin() also added to the check</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257117</commentid>
    <comment_count>14</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-07-28 05:20:18 -0700</bug_when>
    <thetext>
&gt; Actually if you check the patch,
&gt; 
&gt;  elsif (isGtk()) {
&gt;      $platform = &quot;gtk&quot;;
&gt; -    if (!$ENV{&quot;WEBKIT_TESTFONTS&quot;}) {
&gt; -        print &quot;The WEBKIT_TESTFONTS environment variable is not defined.\n&quot;;
&gt; -        print &quot;You must set it before running the tests.\n&quot;;
&gt; -        print &quot;Use git to grab the actual fonts from http://gitorious.org/qtwebkit/testfonts\n&quot;;
&gt; -        exit 1;
&gt; -    }
&gt; 
&gt; GTK always had this check. This patch just moves it to QT and win port as well. 
&gt; On #webkit IRC, I came to know apple&apos;s win port uses this env variable so isCygwin() also added to the check

Not sure about cygwin, but for Qt is it a valuable check, yes.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62526</attachid>
            <date>2010-07-25 11:42:34 -0700</date>
            <delta_ts>2010-07-27 05:04:09 -0700</delta_ts>
            <desc>patch</desc>
            <filename>layoutScript.patch</filename>
            <type>text/plain</type>
            <size>1856</size>
            <attacher name="Mahesh Kulkarni">maheshk</attacher>
            
              <data encoding="base64">SW5kZXg6IFNjcmlwdHMvb2xkLXJ1bi13ZWJraXQtdGVzdHMKPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU2NyaXB0
cy9vbGQtcnVuLXdlYmtpdC10ZXN0cwkocmV2aXNpb24gNjQwMjEpCisrKyBTY3JpcHRzL29sZC1y
dW4td2Via2l0LXRlc3RzCSh3b3JraW5nIGNvcHkpCkBAIC0yMTQsMTIgKzIxNCw2IEBACiAgICAg
fQogfSBlbHNpZiAoaXNHdGsoKSkgewogICAgICRwbGF0Zm9ybSA9ICJndGsiOwotICAgIGlmICgh
JEVOVnsiV0VCS0lUX1RFU1RGT05UUyJ9KSB7Ci0gICAgICAgIHByaW50ICJUaGUgV0VCS0lUX1RF
U1RGT05UUyBlbnZpcm9ubWVudCB2YXJpYWJsZSBpcyBub3QgZGVmaW5lZC5cbiI7Ci0gICAgICAg
IHByaW50ICJZb3UgbXVzdCBzZXQgaXQgYmVmb3JlIHJ1bm5pbmcgdGhlIHRlc3RzLlxuIjsKLSAg
ICAgICAgcHJpbnQgIlVzZSBnaXQgdG8gZ3JhYiB0aGUgYWN0dWFsIGZvbnRzIGZyb20gaHR0cDov
L2dpdG9yaW91cy5vcmcvcXR3ZWJraXQvdGVzdGZvbnRzXG4iOwotICAgICAgICBleGl0IDE7Ci0g
ICAgfQogfSBlbHNpZiAoaXNXeCgpKSB7CiAgICAgJHBsYXRmb3JtID0gInd4IjsKIH0gZWxzaWYg
KGlzQ3lnd2luKCkpIHsKQEAgLTIzNCw2ICsyMjgsMTYgQEAKICAgICB9CiB9CiAKK2lmIChpc1F0
KCkgfHwgaXNHdGsoKSB8fCBpc0N5Z3dpbigpKSB7CisgICAgbXkgJHRlc3Rmb250UGF0aCA9ICRF
TlZ7IldFQktJVF9URVNUR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nVnLmNnaT9p
ZD00Mjk0NworCUNoZWNrIGZvciBXRUJLSVRfVEVTVEZPTlRTIGZvciBxdCwgZ3RrIGFuZCB3aW5k
b3dzIHBvcnQgYW5kIHRocm93IAorICAgICAgICBlcnJvci4gV2l0aG91dCB3aGljaCBkdW1wUmVu
ZGVyVHJlZSBjcmFzaGVzLgorCisgICAgICAgICogU2NyaXB0cy9vbGQtcnVuLXdlYmtpdC10ZXN0
czoKKwogMjAxMC0wNy0yNSAgQWxleGV5IFByb3NrdXJ5YWtvdiAgPGFwQGFwcGxlLmNvbT4KIAog
ICAgICAgICBSZXZpZXdlZCBieSBTYW0gV2VpbmlnLgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62540</attachid>
            <date>2010-07-25 21:11:33 -0700</date>
            <delta_ts>2010-07-27 13:15:48 -0700</delta_ts>
            <desc>removed tab </desc>
            <filename>layoutScript.patch</filename>
            <type>text/plain</type>
            <size>1863</size>
            <attacher name="Mahesh Kulkarni">maheshk</attacher>
            
              <data encoding="base64">SW5kZXg6IFNjcmlwdHMvb2xkLXJ1bi13ZWJraXQtdGVzdHMKPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU2NyaXB0
cy9vbGQtcnVuLXdlYmtpdC10ZXN0cwkocmV2aXNpb24gNjQwMjEpCisrKyBTY3JpcHRzL29sZC1y
dW4td2Via2l0LXRlc3RzCSh3b3JraW5nIGNvcHkpCkBAIC0yMTQsMTIgKzIxNCw2IEBACiAgICAg
fQogfSBlbHNpZiAoaXNHdGsoKSkgewogICAgICRwbGF0Zm9ybSA9ICJndGsiOwotICAgIGlmICgh
JEVOVnsiV0VCS0lUX1RFU1RGT05UUyJ9KSB7Ci0gICAgICAgIHByaW50ICJUaGUgV0VCS0lUX1RF
U1RGT05UUyBlbnZpcm9ubWVudCB2YXJpYWJsZSBpcyBub3QgZGVma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m9ybS1z
cGVjaWZpYyByZXN1bHRzIHdpbGwgYmUgZ2VuZXJhdGVkIGluIHBsYXRmb3JtL3VuZGVmaW5lZC5c
biI7CiAgICAgJHBsYXRmb3JtID0gInVuZGVmaW5lZCI7CkluZGV4OiBDaGFuZ2VMb2cKPT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PQotLS0gQ2hhbmdlTG9nCShyZXZpc2lvbiA2NDAyMSkKKysrIENoYW5nZUxvZwkod29ya2lu
ZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDEwLTA3LTI1ICBNYWhlc2ggS3Vsa2FybmkgIDxt
YWhlc2gua3Vsa2FybmlAbm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD00Mjk0NworICAgICAgICBDaGVjayBmb3IgV0VCS0lUX1RFU1RGT05UUyBmb3IgcXQsIGd0ayBh
bmQgd2luZG93cyBwb3J0IGFuZCB0aHJvdyAKKyAgICAgICAgZXJyb3IuIFdpdGhvdXQgd2hpY2gg
ZHVtcFJlbmRlclRyZWUgY3Jhc2hlcy4KKworICAgICAgICAqIFNjcmlwdHMvb2xkLXJ1bi13ZWJr
aXQtdGVzdHM6CisKIDIwMTAtMDctMjUgIEFsZXhleSBQcm9za3VyeWFrb3YgIDxhcEBhcHBsZS5j
b20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgU2FtIFdlaW5pZy4K
</data>
<flag name="review"
          id="50768"
          type_id="1"
          status="+"
          setter="darin"
    />
    <flag name="commit-queue"
          id="50769"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>