[xorg-edgers] Piglit fails to run unless PYTHONPATH is specified (kludge)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Won't Fix
|
High
|
xorg crack pushers |
Bug Description
This is a piglit bug but it also affects checkbox/plainbox (our provider).
Package versions are:
$ apt-cache policy piglit plainbox-
piglit:
Installed: 1.0.0~git201405
Candidate: 1.0.0~git201405
Version table:
*** 1.0.0~git201405
500 http://
100 /var/lib/
plainbox-
Installed: 0.17+bzr3484+
Candidate: 0.17+bzr3484+
Version table:
*** 0.17+bzr3484+
500 http://
100 /var/lib/
0.4-1 0
500 http://
Now, running the piglit-run command on its own also barfs, so it's not caused by us mishandling things; there *is* a problem with piglit. This is the most basic, sanity-checking command listed in piglit's README:
$ piglit-run.py tests/sanity.tests results/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
profile = framework.
File "/usr/lib/
profile = loadTestProfile
File "/usr/lib/
os.
File "/usr/lib/
__import_
ImportError: No module named tests.sanity
A quick workaround to make this run is:
$ PYTHONPATH=
Note that /usr/share/piglit contains a set of python modules expected by piglit.
Also, the piglit PPA says this:
Note: Full path to the tests must be provided when using this version, they live in /usr/share/piglit/
Usage example:
piglit-run.py -t fbo -t texturing /usr/share/
but doing this results in:
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
profile = framework.
File "/usr/lib/
profile = loadTestProfile
File "/usr/lib/
os.
File "/usr/lib/
__import_
ImportError: No module named tests.all
Notice that the PPA advertises a 20141128 version of piglit:
http://
But in the archive, the latest available build is indeed the one we have:
http://
Related branches
- Sylvain Pineau (community): Approve
-
Diff: 58 lines (+13/-7)1 file modifiedproviders/plainbox-provider-checkbox/bin/piglit_test (+13/-7)
summary: |
- Piglit fails to run unless PYTHONPATH is specified (kludge) + [xorg-edgers] Piglit fails to run unless PYTHONPATH is specified + (kludge) |
Changed in plainbox-provider-checkbox: | |
importance: | Undecided → High |
For checkbox, a hacky workaround is to change the command: and add PYTHONPATH= /usr/share/ piglit in the beginning.