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 <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to