tarmac should run lplxcip tests

Bug #1045807 reported by Gary Poster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lpsetup
Triaged
High
Unassigned

Bug Description

tarmac runs pre-commit.sh . It runs nosetests in the base directory. This will only run the tests for lpsetup.

`cd lplxcip && sudo nosetests` must be used to run lxcip tests. This is because 1) lxcip requires root 2) test_lxcip creates an LXC container, used to exercise the main functions.

I believe we already have sudoers set up for a similar problem on the canonistack tarmac instance. I will ask bac to confirm.

Revision history for this message
Gary Poster (gary) wrote :

bac reports that pre-commit.sh is run by the tarmac user. However, that user has sudo privileges, so tests for lp-lxc-ip could be run as root. it could be a trivial fix: just mod pre-commit.sh.

A pertinent aside: the tarmac+lp2kanban canonistack branch is at https://bazaar.launchpad.net/%7Eyellow/lp-tarmac-configs/tarmac-puppet/files

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.