From 1e30dcaf8d9cf166f331617decc7b08c39b98eff Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Fri, 9 May 2014 01:27:55 +0200 Subject: tests: run pkexec journalctl --- tests/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3