<?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>65464</bug_id>
          
          <creation_ts>2011-08-01 04:51:55 -0700</creation_ts>
          <short_desc>[ORWT] Fix --reset-results --add-platform-exceptions combo</short_desc>
          <delta_ts>2011-08-22 03:06:29 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Kristóf Kosztyó">kkristof</assigned_to>
          <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>444662</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-08-01 04:51:55 -0700</bug_when>
    <thetext>I usually use ORWT with &quot;-p --platform qt --reset-results --add-platform-exceptions&quot;
options to create new and/or update Qt specific expected results for a bunch of tests.

Now if we use only --reset-results option,
 - platform independent expected result is reseted if there isn&apos;t platform specific result before (good)
 - platform specific expected result is reseted if there is platform specific result (good)

Now if we use only --add-platform-exceptions option,
 - platform specific expected result is be added if there isn&apos;t platform specific result (good)
 - nothing happens if there is platform specific result (maybe good)

Now if we use --add-platform-exceptions and --reset-results options,
 - platform independent expected result is reseted if there isn&apos;t platform specific result before ( &lt;---- BUG!!! )
 - platform specific expected result is reseted if there is platform specific result (good)
 - platform specific expected result is added if there isn&apos;t platform specific result (good)

I run into a bug and/or feature. There are a bunch of tests need 
new and/or updated platform specific expected results:
 - tests with and without platform independent expected results
 - tests with and without platform specific expected results

It would be great if it is possible with ORWT to generate or reset all platform specific 
results with one run with --add-platform-exceptions and --reset-results options.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>444670</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-08-01 06:09:36 -0700</bug_when>
    <thetext>There is a similar or same bug, when I use platform qt-4.8.

When I use --reset-results and --add-platform-exceptions combo and
there isn&apos;t qt-4.8 specific expected result, unfortunately the qt 
specific expected result will be resetted instead of the qt-4.8 one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447859</commentid>
    <comment_count>2</comment_count>
      <attachid>103205</attachid>
    <who name="Kristóf Kosztyó">kkristof</who>
    <bug_when>2011-08-07 23:47:26 -0700</bug_when>
    <thetext>Created attachment 103205
proposed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>454508</commentid>
    <comment_count>3</comment_count>
      <attachid>103205</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-08-22 03:05:44 -0700</bug_when>
    <thetext>Comment on attachment 103205
proposed fix

great work, r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>454509</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2011-08-22 03:06:19 -0700</bug_when>
    <thetext>Landed in https://trac.webkit.org/changeset/93502</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>103205</attachid>
            <date>2011-08-07 23:47:26 -0700</date>
            <delta_ts>2011-08-22 03:06:29 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>0808.patch</filename>
            <type>text/plain</type>
            <size>2241</size>
            <attacher name="Kristóf Kosztyó">kkristof</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCA2MDc2
NDBiLi5lMzg3NjhlIDEwMDY0NAotLS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTEtMDgtMDcgIEtyaXN0w7NmIEtvc3p0ecOzICA8
S29zenR5by5LcmlzdG9mQHN0dWQudS1zemVnZWQuaHU+CisKKyAgICAgICAgW09SV1RdIEZpeCAt
LXJlc2V0LXJlc3VsdHMgLS1hZGQtcGxhdGZvcm0tZXhjZXB0aW9ucyBjb21ibworICAgICAgICBo
dHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjU0NjQKKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIFNjcmlwdHMvb2xkLXJ1bi13
ZWJraXQtdGVzdHM6CisKIDIwMTEtMDgtMDcgIFNhbSBXaGl0ZSAgPHNhbXVlbC53aGl0ZUByb2No
ZXN0ZXIuZWR1PgogCiAgICAgICAgIEFkZCB0aGUgYWJpbGl0eSB0byBzZWFyY2ggdGhlIEFjY2Vz
c2liaWxpdHlPYmplY3QgY2FjaGUKZGlmZiAtLWdpdCBhL1Rvb2xzL1NjcmlwdHMvb2xkLXJ1bi13
ZWJraXQtdGVzdHMgYi9Ub29scy9TY3JpcHRzL29sZC1ydW4td2Via2l0LXRlc3RzCmluZGV4IDUw
ZTFmZjEuLjYzZTQ1Y2UgMTAwNzU1Ci0tLSBhL1Rvb2xzL1NjcmlwdHMvb2xkLXJ1bi13ZWJraXQt
dGVzdHMKKysrIGIvVG9vbHMvU2NyaXB0cy9vbGQtcnVuLXdlYmtpdC10ZXN0cwpAQCAtOTU0L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NldFJlc3VsdHMpIHsKLSAgICAgICAgICAgIG1rcGF0aCBjYXRmaWxlKCRleHBlY3Rl
ZERpciwgZGlybmFtZSgkYmFzZSkpIGlmICR0ZXN0RGlyZWN0b3J5IG5lICRleHBlY3RlZERpcjsK
LSAgICAgICAgICAgIHdyaXRlVG9GaWxlKCIkZXhwZWN0ZWREaXIvJGV4cGVjdGVkRmlsZU5hbWUi
LCAkYWN0dWFsKTsKKyAgICAgICAgICAgIGlmICghJGFkZFBsYXRmb3JtRXhjZXB0aW9ucykgewor
ICAgICAgICAgICAgICAgIG1rcGF0aCBjYXRmaWxlKCRleHBlY3RlZERpciwgZGlybmFtZSgkYmFz
ZSkpIGlmICR0ZXN0RGlyZWN0b3J5IG5lICRleHBlY3RlZERpcjsKKyAgICAgICAgICAgICAgICB3
cml0ZVRvRmlsZSgiJGV4cGVjdGVkRGlyLyRleHBlY3RlZEZpbGVOYW1lIiwgJGFjdHVhbCk7Cisg
ICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAgICAgICAgIG1rcGF0aCBjYXRmaWxlKCRwbGF0
Zm9ybVRlc3REaXJlY3RvcnksIGRpcm5hbWUoJGJhc2UpKTsKKyAgICAgICAgICAgICAgICB3cml0
ZVRvRmlsZSgiJHBsYXRmb3JtVGVzdERpcmVjdG9yeS8kZXhwZWN0ZWRGaWxlTmFtZSIsICRhY3R1
YWwpOworICAgICAgICAgICAgfQogICAgICAgICB9CiAgICAgICAgIGRlbGV0ZUV4cGVjdGVkQW5k
QWN0dWFsUmVzdWx0cygkYmFzZSk7CiAgICAgICAgIHJlY29yZEFjdHVhbFJlc3VsdHNBbmREaWZm
KCRiYXNlLCAkYWN0dWFsKTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>