[GTK][EFL] Layout tests abort with PulseAudioSanitizer instance has no attribute...
authorclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jan 2016 04:05:22 +0000 (04:05 +0000)
committerclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jan 2016 04:05:22 +0000 (04:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=153216

Reviewed by Michael Catanzaro.

* Scripts/webkitpy/port/pulseaudio_sanitizer.py:
(PulseAudioSanitizer.__init__): initialize _pa_module_index in the constructor.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195245 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/port/pulseaudio_sanitizer.py

index 2a41ede..2b552fa 100644 (file)
@@ -1,3 +1,13 @@
+2016-01-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
+
+        [GTK][EFL] Layout tests abort with PulseAudioSanitizer instance has no attribute '_pa_module_index' when the build is not ready.
+        https://bugs.webkit.org/show_bug.cgi?id=153216
+
+        Reviewed by Michael Catanzaro.
+
+        * Scripts/webkitpy/port/pulseaudio_sanitizer.py:
+        (PulseAudioSanitizer.__init__): initialize _pa_module_index in the constructor.
+
 2016-01-18  Nan Wang  <n_wang@apple.com>
 
         AX: [Mac] Implement next/previous text marker functions using TextIterator
index 465b921..aedaa38 100644 (file)
@@ -37,6 +37,9 @@ _log = logging.getLogger(__name__)
 
 # Shared by GTK and EFL for pulseaudio sanitizing before running tests.
 class PulseAudioSanitizer:
+    def __init__(self):
+        self._pa_module_index = -1
+
     def unload_pulseaudio_module(self):
         # Unload pulseaudio's module-stream-restore, since it remembers
         # volume settings from different runs, and could affect