unexpected environment when running tests as non-root user

Bug #1110688 reported by Martin Mrazik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
New
Undecided
Unassigned

Bug Description

I didn't check UTAH source code so bear with me if there is too much guessing here.
My tc_control file has something like this:
run_as: jenkins

However it looks like that utah runs the tests as jenkins using a plain sudo/su as e.g. $HOME expands to /root rather then to ~jenkins. This confuses the tests (as well as me).

I think adding "-i" to the sudo command would be a better semantics for something that is called "run as: jenkins".

Revision history for this message
Max Brustkern (nuclearbob) wrote :

I'll add this to an existing bug we have for this issue. For autopilot tests, we're currently working around it with run_as: root and using an su in the command, but correct environment inheritance is something we intend to implement.

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.