<?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>153216</bug_id>
          
          <creation_ts>2016-01-18 18:17:35 -0800</creation_ts>
          <short_desc>[GTK][EFL] Layout tests abort with PulseAudioSanitizer instance has no attribute &apos;_pa_module_index&apos; when the build is not ready.</short_desc>
          <delta_ts>2016-01-18 20:05:38 -0800</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>Other</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 name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>commit-queue</cc>
    
    <cc>glenn</cc>
    
    <cc>lforschler</cc>
    
    <cc>mjs</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1156497</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-01-18 18:17:35 -0800</bug_when>
    <thetext>When the build is not ready, trying to run run-webkit-tests will cause this:

$ Tools/Scripts/run-webkit-tests --release --gtk 
Using port &apos;gtk-wk2&apos;
Test configuration: &lt;, x86, release&gt;
Placing test results in /home/slave/testbuild/WebKit/WebKitBuild/Release/layout-test-results
Baseline search path: gtk -&gt; wk2 -&gt; generic
Using Release build
Pixel tests disabled
Regular timeout: 6000, slow test timeout: 30000
Command line: /home/slave/testbuild/WebKit/Tools/jhbuild/jhbuild-wrapper --gtk run /home/slave/testbuild/WebKit/WebKitBuild/Release/bin/WebKitTestRunner -

Found 43415 tests; running 38964, skipping 4451.
WebKitTestRunner was not found at /home/slave/testbuild/WebKit/WebKitBuild/Release/bin/WebKitTestRunner
Build check failed

AttributeError raised: PulseAudioSanitizer instance has no attribute &apos;_pa_module_index&apos;
Traceback (most recent call last):
  File &quot;/home/slave/testbuild/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 77, in main
    run_details = run(port, options, args, stderr)
  File &quot;/home/slave/testbuild/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 409, in run
    run_details = manager.run(args)
  File &quot;/home/slave/testbuild/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 229, in run
    self._clean_up_run()
  File &quot;/home/slave/testbuild/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 279, in _clean_up_run
    self._port.clean_up_test_run()
  File &quot;/home/slave/testbuild/WebKit/Tools/Scripts/webkitpy/port/gtk.py&quot;, line 110, in clean_up_test_run
    self._pulseaudio_sanitizer.restore_pulseaudio_module()
  File &quot;/home/slave/testbuild/WebKit/Tools/Scripts/webkitpy/port/pulseaudio_sanitizer.py&quot;, line 81, in restore_pulseaudio_module
    if self._pa_module_index != -1:
AttributeError: PulseAudioSanitizer instance has no attribute &apos;_pa_module_index&apos;


The variable PulseAudioSanitizer._pa_module_index is set when PulseAudioSanitizer.unload_pulseaudio_module() is called from Port.setup_test_run(), which is done before calling  PulseAudioSanitizer.restore_pulseaudio_module() which checks for this variable to be != -1

The issue is that when the build is not ready, Port.setup_test_run() is not run therefore the variable PulseAudioSanitizer.restore_pulseaudio_module() is not set causing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1156500</commentid>
    <comment_count>1</comment_count>
      <attachid>269251</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-01-18 18:21:56 -0800</bug_when>
    <thetext>Created attachment 269251
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1156532</commentid>
    <comment_count>2</comment_count>
      <attachid>269251</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-18 20:05:34 -0800</bug_when>
    <thetext>Comment on attachment 269251
Patch

Clearing flags on attachment: 269251

Committed r195245: &lt;http://trac.webkit.org/changeset/195245&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1156533</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-18 20:05:38 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>269251</attachid>
            <date>2016-01-18 18:21:56 -0800</date>
            <delta_ts>2016-01-18 20:05:34 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-153216-20160119032126.patch</filename>
            <type>text/plain</type>
            <size>1536</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk1MjQyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggMmE0MWVkZWU5OTE5YWIzMTM0MTRiMTJmNGUyMmVjYzA3
Y2M2YWQ1Ny4uOWI4ZmRkN2ZkNjMyMjA4MzM0MDMyNTA4ZmNhNTFiYzg2NmQ5MWE4ZCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDE2L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