[Piglit] [PATCH 03/10] xts.py: Hid populate_profile() from being imported
Dylan Baker
baker.dylan.c at gmail.com
Thu Jan 29 15:31:18 PST 2015
It's not meant for use outside the module, so mark it as such with a
leading _
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
tests/xts.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/xts.py b/tests/xts.py
index e1bdd2f..2672917 100644
--- a/tests/xts.py
+++ b/tests/xts.py
@@ -163,7 +163,7 @@ class XTSTest(Test): # pylint: disable=too-few-public-methods
self.result['images'] = self._process_log_for_images(log)
-def populate_profile():
+def _populate_profile():
""" Populate the profile attribute """
# Add all tests to the profile
profile = XTSProfile() # pylint: disable=redefined-outer-name
@@ -202,4 +202,4 @@ if not os.path.exists(X_TEST_SUITE):
print("xtest symlink not found!")
sys.exit(0)
-profile = populate_profile() # pylint: disable=invalid-name
+profile = _populate_profile() # pylint: disable=invalid-name
--
2.2.2
More information about the Piglit
mailing list