avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
84 stars 242 forks source link

Parallel Jobs : Not able to run tests as mentioned in the document #1160

Open harihare opened 7 years ago

harihare commented 7 years ago

Hi,

I am referring to the following avocato-VT document http://avocado-vt.readthedocs.io/en/latest/ParallelJobs.html

Created a normal user and added the same to sudoer's list too. Able to bootstrap avocado-vt from the normal user. When I trigger the tests, able to create the guest how ever commands executed on Host is failed with rc=255 (Permission denied).

Example : Test is trying to set nr_hugepages which requires sudo permission for the user, process.system('/sbin/sysctl vm.nr_hugepages=%d' % num)

is there a way to say that the host commands has to be executed with sudo if the user is a non-root user.

harihare commented 7 years ago

Log can be found in pastebin https://pastebin.com/yWAMptbY