Use spawn rather than execute to check if a process is running.
commit835e5a12df6fabe8c4c9ca78fbeba4ab5cec5c9c
authorTails developers <amnesia@boum.org>
Tue, 15 Oct 2013 15:12:38 +0000 (15 17:12 +0200)
committerTails developers <amnesia@boum.org>
Tue, 15 Oct 2013 15:36:24 +0000 (15 17:36 +0200)
tree6cdffd07c95e31a2a1c7df32d340851bcc5ecc61
parentf496fd441a872a14426e6549152641d0a1c89dd4
Use spawn rather than execute to check if a process is running.

Since some applications do run under another user than 'amnesia' and
more privileges are required to see other users processes, the use of
VM.spawn which executes commands in the VM as root is necessary over the
use of VM.execute (which executes commands as 'amnesia').
features/support/helpers/vm_helper.rb