summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2019-02-05 17:32:16 +0100
committerBenjamin Berg <bberg@redhat.com>2019-02-05 17:32:16 +0100
commitc087f272fee91dc2f422fc12e535f791ac0479bc (patch)
treed086f063140327071459951360c8ac2418a755c2
parent1941d066c0aee8ecd4be278910cf566c97c7fee5 (diff)
downloadgnome-settings-daemon-c087f272fee91dc2f422fc12e535f791ac0479bc.tar.gz
power: Let stderr output of gsd-power test process go outside
We used to redirect it into stdout which goes into a separate log. However, stderr is generally useful to see, and we actually need to see it for ASAN checking. So always let stderr go through for the gsd-power test process.
-rwxr-xr-xplugins/power/test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/power/test.py b/plugins/power/test.py
index b9873579..8e3bde86 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -124,11 +124,12 @@ class PowerPluginBase(gsdtestcase.GSDTestCase):
else:
env['LD_PRELOAD'] = env['POWER_LD_PRELOAD']
+ # We need to redirect stdout to grab the debug messages.
+ # stderr is not needed by the testing infrastructure but is useful to
+ # see warnings and errors.
self.daemon = subprocess.Popen(
[os.path.join(builddir, 'gsd-power'), '--verbose'],
- # comment out this line if you want to see the logs in real time
stdout=self.plugin_log_write,
- stderr=subprocess.STDOUT,
env=env)
# you can use this for reading the current daemon log in tests