summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-01-26 10:46:56 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2015-03-09 10:23:39 -0700
commitf982947b4b9df06aa7504333803be60113cf9534 (patch)
tree368c97fe0699e10dcf5222ae73211c914cf148a4
parentf2644d0548bad7ab32cdeb25288b4708cf347739 (diff)
igt.py: Use PEP8 specified whitespace
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Thomas Wood <thomas.wood@intel.com>
-rw-r--r--tests/igt.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/igt.py b/tests/igt.py
index dccd6265d..743ccb2e0 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -41,6 +41,7 @@ __all__ = ['profile']
##### automatically add all tests into the 'igt' category.
#############################################################################
+
def check_environment():
debugfs_path = "/sys/kernel/debug/dri"
if os.getuid() != 0:
@@ -61,6 +62,7 @@ def check_environment():
print "Test Environment check: Succeeded."
return True
+
if 'IGT_TEST_ROOT' in os.environ:
IGT_TEST_ROOT = os.environ['IGT_TEST_ROOT']
else:
@@ -83,6 +85,7 @@ class IGTTestProfile(TestProfile):
profile = IGTTestProfile() # pylint: disable=invalid-name
+
class IGTTest(Test):
def __init__(self, binary, arguments=None):
if arguments is None:
@@ -102,6 +105,7 @@ class IGTTest(Test):
self.result['result'] = 'fail'
+
def list_tests(listname):
with open(os.path.join(IGT_TEST_ROOT, listname + '.txt'), 'r') as f:
lines = (line.rstrip() for line in f.readlines())
@@ -117,6 +121,7 @@ def list_tests(listname):
return []
+
def add_subtest_cases(test):
proc = subprocess.Popen(
[os.path.join(IGT_TEST_ROOT, test), '--list-subtests'],