unexpected environment when running tests as non-root user
Bug #1110688 reported by
Martin Mrazik
This bug report is a duplicate of:
Bug #1073617: run_as doesn't use the nominated users environment (i.e. attempts to use roots X connection).
Edit
Remove
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".
To post a comment you must log in.
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.