<?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>86501</bug_id>
          
          <creation_ts>2012-05-15 11:00:43 -0700</creation_ts>
          <short_desc>add unit test for NRWT&apos;s --additional-expectations option</short_desc>
          <delta_ts>2012-05-15 15:05:15 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>epoger</reporter>
          <assigned_to name="Elliot Poger">epoger</assigned_to>
          <cc>abarth</cc>
    
    <cc>dpranke</cc>
    
    <cc>ojan</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>624271</commentid>
    <comment_count>0</comment_count>
    <who name="">epoger</who>
    <bug_when>2012-05-15 11:00:43 -0700</bug_when>
    <thetext>This is in addition to the integration test already added in http://trac.webkit.org/changeset/114559</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624275</commentid>
    <comment_count>1</comment_count>
      <attachid>142007</attachid>
    <who name="">epoger</who>
    <bug_when>2012-05-15 11:02:52 -0700</bug_when>
    <thetext>Created attachment 142007
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624284</commentid>
    <comment_count>2</comment_count>
      <attachid>142007</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-05-15 11:09:51 -0700</bug_when>
    <thetext>Comment on attachment 142007
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142007&amp;action=review

tests++

&gt; Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py:296
&gt; +            &apos;/tmp/additional-expectations-1.txt&apos;]
&gt; +        self.assertEquals(&apos;content1\n&apos;, port.test_expectations_overrides())
&gt; +
&gt; +        port._options.additional_expectations = [
&gt; +            &apos;/tmp/nonexistent-file&apos;, &apos;/tmp/additional-expectations-1.txt&apos;]

It surprises me that we don&apos;t raise an error when you pass in a non-existant file. Is there a use-case for that? 

Obviously, this patch is fine since it&apos;s just testing the existing behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624307</commentid>
    <comment_count>3</comment_count>
      <attachid>142007</attachid>
    <who name="">epoger</who>
    <bug_when>2012-05-15 11:27:45 -0700</bug_when>
    <thetext>Comment on attachment 142007
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142007&amp;action=review

&gt;&gt; Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py:296
&gt;&gt; +            &apos;/tmp/nonexistent-file&apos;, &apos;/tmp/additional-expectations-1.txt&apos;]
&gt; 
&gt; It surprises me that we don&apos;t raise an error when you pass in a non-existant file. Is there a use-case for that? 
&gt; 
&gt; Obviously, this patch is fine since it&apos;s just testing the existing behavior.

I just happened upon this behavior... but I can think of at least one potential use case:  I want to add an expectations override file within the Skia tree that NRWT always observes, and depending on a given checkout&apos;s DEPS, that expectations override file might or might not be found...

But I&apos;m sure there are other ways to handle that.  I would not be opposed to failing on file-not-found.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624309</commentid>
    <comment_count>4</comment_count>
      <attachid>142007</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-15 11:28:38 -0700</bug_when>
    <thetext>Comment on attachment 142007
Patch

Rejecting attachment 142007 from commit-queue.

epoger@google.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624320</commentid>
    <comment_count>5</comment_count>
    <who name="">epoger</who>
    <bug_when>2012-05-15 11:37:15 -0700</bug_when>
    <thetext>Please, nobody hit commit+ on this... I&apos;m supposedly a webkit committer now, so I want to make sure I can get this to work. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624338</commentid>
    <comment_count>6</comment_count>
      <attachid>142007</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-05-15 11:49:34 -0700</bug_when>
    <thetext>Comment on attachment 142007
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142007&amp;action=review

&gt;&gt;&gt; Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py:296
&gt;&gt;&gt; +            &apos;/tmp/nonexistent-file&apos;, &apos;/tmp/additional-expectations-1.txt&apos;]
&gt;&gt; 
&gt;&gt; It surprises me that we don&apos;t raise an error when you pass in a non-existant file. Is there a use-case for that? 
&gt;&gt; 
&gt;&gt; Obviously, this patch is fine since it&apos;s just testing the existing behavior.
&gt; 
&gt; I just happened upon this behavior... but I can think of at least one potential use case:  I want to add an expectations override file within the Skia tree that NRWT always observes, and depending on a given checkout&apos;s DEPS, that expectations override file might or might not be found...
&gt; 
&gt; But I&apos;m sure there are other ways to handle that.  I would not be opposed to failing on file-not-found.

The code logs a warning, but intentionally does not fail. At least until proven otherwise, it didn&apos;t seem like this should be a fatal error.

There are actually a couple of tests for this functionality in run_webkit_tests_integrationtest.py, but I&apos;m not opposed to adding a unit test here as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624462</commentid>
    <comment_count>7</comment_count>
      <attachid>142007</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-15 13:18:19 -0700</bug_when>
    <thetext>Comment on attachment 142007
Patch

Rejecting attachment 142007 from commit-queue.

epoger@google.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624624</commentid>
    <comment_count>8</comment_count>
      <attachid>142007</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-15 15:05:10 -0700</bug_when>
    <thetext>Comment on attachment 142007
Patch

Clearing flags on attachment: 142007

Committed r117168: &lt;http://trac.webkit.org/changeset/117168&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624625</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-15 15:05:15 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>142007</attachid>
            <date>2012-05-15 11:02:52 -0700</date>
            <delta_ts>2012-05-15 15:05:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-86501-20120515110251.patch</filename>
            <type>text/plain</type>
            <size>2307</size>
            <attacher>epoger</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDEx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RlbnQtZmls
ZScsICcvdG1wL2FkZGl0aW9uYWwtZXhwZWN0YXRpb25zLTEudHh0J10KKyAgICAgICAgc2VsZi5h
c3NlcnRFcXVhbHMoJ2NvbnRlbnQxXG4nLCBwb3J0LnRlc3RfZXhwZWN0YXRpb25zX292ZXJyaWRl
cygpKQorCisgICAgICAgIHBvcnQuX29wdGlvbnMuYWRkaXRpb25hbF9leHBlY3RhdGlvbnMgPSBb
CisgICAgICAgICAgICAnL3RtcC9hZGRpdGlvbmFsLWV4cGVjdGF0aW9ucy0xLnR4dCcsICcvdG1w
L2FkZGl0aW9uYWwtZXhwZWN0YXRpb25zLTIudHh0J10KKyAgICAgICAgc2VsZi5hc3NlcnRFcXVh
bHMoJ2NvbnRlbnQxXG5jb250ZW50MlxuJywgcG9ydC50ZXN0X2V4cGVjdGF0aW9uc19vdmVycmlk
ZXMoKSkKKwogICAgIGRlZiB0ZXN0X3VzZXNfdGVzdF9leHBlY3RhdGlvbnNfZmlsZShzZWxmKToK
ICAgICAgICAgcG9ydCA9IHNlbGYubWFrZV9wb3J0KHBvcnRfbmFtZT0nZm9vJykKICAgICAgICAg
cG9ydC5wYXRoX3RvX3Rlc3RfZXhwZWN0YXRpb25zX2ZpbGUgPSBsYW1iZGE6ICcvbW9jay1yZXN1
bHRzL3Rlc3RfZXhwZWN0YXRpb25zLnR4dCcK
</data>

          </attachment>
      

    </bug>

</bugzilla>