When executing a manual test case that makes use of the output of a command, that is run as root user, in its description there isn't any problem. However, if the Test button in the GTK interface is pressed to get a new description, the following traceback is displayed in the console:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/checkbox_gtk/gtk_interface.py", line 254, in <lambda>
lambda w, t=test: self._run_test(t))
File "/usr/lib/python2.6/dist-packages/checkbox_gtk/gtk_interface.py", line 229, in _run_test
result = self.show_wait(message, test.command)
File "/usr/lib/python2.6/dist-packages/checkbox_gtk/gtk_interface.py", line 186, in show_wait
result = self.do_function(function, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/checkbox_gtk/gtk_interface.py", line 175, in do_function
*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/checkbox/user_interface.py", line 58, in do_function
thread.exc_raise()
File "/usr/lib/python2.6/dist-packages/checkbox/contrib/REThread.py", line 37, in run
self._retval = self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.6/dist-packages/checkbox/command.py", line 88, in __call__
return self.execute(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/checkbox/frontend.py", line 43, in __call__
return getattr(self, self._method)(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/checkbox/frontend.py", line 72, in get_test_result
return TestResult(self.test, status, data, float(duration))
AttributeError: 'Frontend' object has no attribute 'test'
To reproduce the problem, a test case such as the following might be used:
name: test
plugin: manual
command: echo "command output"
user: root
description:
Select test to run the command again:
.
$output