<?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>82877</bug_id>
          
          <creation_ts>2012-04-02 03:36:01 -0700</creation_ts>
          <short_desc>[GTK] Fix names of failed unit tests in Tools/Scripts/run-gtk-tests</short_desc>
          <delta_ts>2012-04-10 08:34:09 -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>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>593310</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-04-02 03:36:01 -0700</bug_when>
    <thetext>The method lstrip is incorrectly used to get the name of failed tests from the full path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593312</commentid>
    <comment_count>1</comment_count>
      <attachid>135058</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-04-02 03:39:50 -0700</bug_when>
    <thetext>Created attachment 135058
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593315</commentid>
    <comment_count>2</comment_count>
      <attachid>135058</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-04-02 03:45:05 -0700</bug_when>
    <thetext>Comment on attachment 135058
Patch

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

&gt; Tools/Scripts/run-gtk-tests:268
&gt; +            names = [test.replace(self._programs_path, &apos;&apos;, 1) for test in failed_tests]

What about os.path.basename(test) ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593316</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-04-02 03:47:46 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 135058 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=135058&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/run-gtk-tests:268
&gt; &gt; +            names = [test.replace(self._programs_path, &apos;&apos;, 1) for test in failed_tests]
&gt; 
&gt; What about os.path.basename(test) ?

that would give you the name, but we also want the directory unittests/WebKit2APITests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593321</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-04-02 03:52:35 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 135058 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=135058&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Tools/Scripts/run-gtk-tests:268
&gt; &gt; &gt; +            names = [test.replace(self._programs_path, &apos;&apos;, 1) for test in failed_tests]
&gt; &gt; 
&gt; &gt; What about os.path.basename(test) ?
&gt; 
&gt; that would give you the name, but we also want the directory unittests/WebKit2APITests

Is it really useful?
The test naming conventions differ between WK1 and WK2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593323</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-04-02 03:54:52 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; (From update of attachment 135058 [details] [details] [details])
&gt; &gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=135058&amp;action=review
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Tools/Scripts/run-gtk-tests:268
&gt; &gt; &gt; &gt; +            names = [test.replace(self._programs_path, &apos;&apos;, 1) for test in failed_tests]
&gt; &gt; &gt; 
&gt; &gt; &gt; What about os.path.basename(test) ?
&gt; &gt; 
&gt; &gt; that would give you the name, but we also want the directory unittests/WebKit2APITests
&gt; 
&gt; Is it really useful?
&gt; The test naming conventions differ between WK1 and WK2

That&apos;s how we refer to tests, see SkippedTest class</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593333</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-04-02 04:07:19 -0700</bug_when>
    <thetext>Committed r112853: &lt;http://trac.webkit.org/changeset/112853&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>135058</attachid>
            <date>2012-04-02 03:39:50 -0700</date>
            <delta_ts>2012-04-10 08:34:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>run-gtk-tests-failed-tests.diff</filename>
            <type>text/plain</type>
            <size>1209</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCAxOGYw
M2JmLi5mMDQzODZjIDEwMDY0NAotLS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTItMDQtMDIgIENhcmxvcyBHYXJjaWEgQ2FtcG9z
ICA8Y2dhcmNpYUBpZ2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