[Piglit] [PATCH 10/11] profile.py: set __all__

Dylan Baker baker.dylan.c at gmail.com
Fri Apr 25 13:27:42 PDT 2014


Setting the __all__ name in a module controls which names it exposes
when imported.
---
 framework/profile.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/framework/profile.py b/framework/profile.py
index db6fb45..4777c60 100644
--- a/framework/profile.py
+++ b/framework/profile.py
@@ -37,6 +37,12 @@ from framework.dmesg import get_dmesg
 from framework.log import Log
 import framework.exectest
 
+__all__ = [
+    'TestProfile',
+    'loadTestProfile',
+    'merge_test_profiles'
+]
+
 
 class TestProfile(object):
     """ Class that holds a list of tests for execution
-- 
2.0.0.rc0



More information about the Piglit mailing list