[Piglit] [PATCH 18/20] unittests: make deqp tests work on windows by closing generator
Dylan Baker
dylan at pnwbakers.com
Wed Jun 1 23:50:25 UTC 2016
The generator will otherwise hold the tempfile opened and cause an error
in the test.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
unittests/deqp_tests.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/unittests/deqp_tests.py b/unittests/deqp_tests.py
index c237b81..7c1bd86 100644
--- a/unittests/deqp_tests.py
+++ b/unittests/deqp_tests.py
@@ -117,6 +117,7 @@ def test_iter_deqp_test_cases_test():
with utils.nose.tempfile('TEST: a.deqp.test') as tfile:
gen = deqp.iter_deqp_test_cases(tfile)
nt.eq_('a.deqp.test', next(gen))
+ gen.close()
def test_iter_deqp_test_cases_group():
@@ -124,6 +125,7 @@ def test_iter_deqp_test_cases_group():
with utils.nose.tempfile('GROUP: a group\nTEST: a.deqp.test') as tfile:
gen = deqp.iter_deqp_test_cases(tfile)
nt.eq_('a.deqp.test', next(gen))
+ gen.close()
@nt.raises(exceptions.PiglitFatalError)
--
2.8.3
More information about the Piglit
mailing list