Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mesa
piglit
Commits
56d44c80
Commit
56d44c80
authored
Jun 14, 2008
by
Nicolai Hähnle
Browse files
Workaround window manager disrupting test in some cases
parent
e8cd19c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
framework/core.py
View file @
56d44c80
...
...
@@ -29,6 +29,7 @@ import re
import
stat
import
subprocess
import
sys
import
time
import
traceback
__all__
=
[
...
...
@@ -275,6 +276,7 @@ class Environment:
class
Test
:
ignoreErrors
=
[]
sleep
=
0
def
__init__
(
self
):
pass
...
...
@@ -305,6 +307,8 @@ class Test:
print
" result: %(result)s"
%
{
'result'
:
result
[
'result'
]
}
result
.
write
(
env
.
file
,
path
)
if
Test
.
sleep
:
time
.
sleep
(
Test
.
sleep
)
else
:
print
"Dry-run: %(path)s"
%
locals
()
...
...
@@ -345,6 +349,7 @@ class Group(dict):
class
TestProfile
:
def
__init__
(
self
):
self
.
tests
=
Group
()
self
.
sleep
=
0
def
run
(
self
,
env
):
self
.
tests
.
doRun
(
env
,
''
)
...
...
@@ -356,7 +361,7 @@ class TestProfile:
def
loadTestProfile
(
filename
):
try
:
ns
=
{
'__file__'
:
filename
,
'__file__'
:
filename
}
execfile
(
filename
,
ns
)
return
ns
[
'profile'
]
...
...
tests/r300.tests
View file @
56d44c80
...
...
@@ -20,6 +20,12 @@ Test.ignoreErrors.append(re.compile('3D driver claims to not support'))
# Debug info
Test
.
ignoreErrors
.
append
(
re
.
compile
(
'Try R300_SPAN_DISABLE_LOCKING env var if this hangs.'
))
# Some window managers can be confusing for some of the tests because they
# send resize / move events that invalidate frame buffer contents.
# It would be nice to fix these things in a reliable way, but for now
# this workaround of waiting between tests helps...
Test
.
sleep
=
0.2
# glean/blendFunc
# R300 blending hardware appears to be bad
...
...
@@ -32,7 +38,6 @@ env['GLEAN_BLEND_ALPHA_TOLERANCE'] = 2.0
env
=
profile
.
tests
[
'glean'
][
'exactRGBA'
].
env
env
[
'GLEAN_EXACTRGBA_ROUNDING'
]
=
1
# Tests specific to r300
r300
=
Group
()
# Apparently, LOD calculations are off a little for small MIP levels.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment