[Piglit] [PATCH 4/4] unittests: clean up after the generator tests
Dylan Baker
baker.dylan.c at gmail.com
Wed Apr 6 22:46:46 UTC 2016
This currently leaves a cl and spec folder laying around. That's not
good. This patch uses a helper from utils to generate everything in a
temporary directory, and then throw that directory away afterwards.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
unittests/test_generators.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/unittests/test_generators.py b/unittests/test_generators.py
index fc082e9..f75fd88 100644
--- a/unittests/test_generators.py
+++ b/unittests/test_generators.py
@@ -73,6 +73,7 @@ def discover_generators():
def test_generators():
"""Generate tests for the various generators."""
+ @utils.test_in_tempdir
def test(name):
"""Tester function."""
msg = ''
--
2.8.0
More information about the Piglit
mailing list