testsuite fails when /sbin missing from PATH
Bug #709517 reported by
Loïc Minier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Image Tools |
Fix Released
|
Medium
|
Loïc Minier |
Bug Description
Hi
Not sure we actually want to do this, but if PATH doesn't have /sbin, the testsuite fails and users might get errors.
Perhaps we should ensure it's included
I don't know of any distro doing this, but it seems to be the case under sbuild.
Cheers,
Related branches
lp:~lool/linaro-image-tools/missing-sbin
- Guilherme Salgado (community): Approve
-
Diff: 117 lines (+41/-5)4 files modifiedlinaro_image_tools/cmd_runner.py (+14/-0)
linaro_image_tools/hwpack/packages.py (+5/-3)
linaro_image_tools/tests/test_cmd_runner.py (+21/-0)
linaro_image_tools/utils.py (+1/-2)
Changed in linaro-image-tools: | |
milestone: | none → 0.4.4 |
Changed in linaro-image-tools: | |
assignee: | nobody → Loïc Minier (lool) |
status: | Triaged → In Progress |
Changed in linaro-image-tools: | |
status: | In Progress → Fix Committed |
Changed in linaro-image-tools: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We could add that to the environment of cmd_runner.Popen() or just change the PATH when running the test suite. Although the former is not really necessary as when running /sbin commands we probably always use sudo (except in tests, of course)