aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/environment.py b/tests/environment.py
index 0a8dc5c74c..fdccd1ad56 100644
--- a/tests/environment.py
+++ b/tests/environment.py
@@ -62,7 +62,7 @@ def after_scenario(context, scenario):
# Attach journalctl logs
if hasattr(context, "embed"):
- os.system("journalctl /usr/bin/gnome-session --no-pager -o cat --since='%s'> /tmp/journal-session.log" % context.log_start_time)
+ os.system("pkexec journalctl /usr/bin/gnome-session --no-pager -o cat --since='%s'> /tmp/journal-session.log" % context.log_start_time)
data = open("/tmp/journal-session.log", 'r').read()
if data:
context.embed('text/plain', data)