[gnome-settings-daemon] power: Disable audio out in the test suite



commit 9214737b3114332c51154f808dc4ce4b8d3eb76d
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 21 18:55:03 2013 +0100

    power: Disable audio out in the test suite
    
    PulseAudio with out current setup is really unhappy, and was
    unable to get started, and blocking the tests.
    
    So disable the audio out altogether until we can figure out a way to
    test it properly within the session.

 plugins/power/test.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index a587b37..dc6cfdd 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -84,7 +84,11 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
         self.plugin_log_write = open(os.path.join(self.workdir, 'plugin_power.log'), 'wb')
         # avoid painfully long delays of actions for tests
         env = os.environ.copy()
+        # Disable the use of the PolicyKit helper for brightness
         env['GSD_DISABLE_BACKLIGHT_HELPER'] = '1'
+        # Disable PulseAudio output from libcanberra
+        env['CANBERRA_DRIVER'] = 'null'
+
         self.daemon = subprocess.Popen(
             [os.path.join(builddir, 'gsd-test-power')],
             # comment out this line if you want to see the logs in real time


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]