summaryrefslogtreecommitdiff
path: root/piglit-summary-html.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-07-15 22:02:40 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2013-09-11 02:06:14 -0700
commitbf4e060e6b21eac1be12b6610dfcd24bb555d931 (patch)
tree71ae0125f9866aacd090b2052d5f2fb92b5ebc90 /piglit-summary-html.py
parent4f5548372c423e2d7a37073ee843c3b9fad81e2c (diff)
core.py: Move parse_listfile to core.py
Replaces the two individual implementations of parse_listfile with a single shared instance in core.py. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-xpiglit-summary-html.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 6fed689d9..b9a299655 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -27,21 +27,11 @@ import shutil
import os.path as path
import framework.summary as summary
-from framework.core import checkDir
+from framework.core import checkDir, parse_listfile
sys.path.append(path.dirname(path.realpath(sys.argv[0])))
-def parse_listfile(filename):
- """
- Read a list of newline seperated flies and return them as a python list.
- strip the last newline character so the list doesn't have an extra ''
- element at the end.
- """
- with open(filename, 'r') as file:
- return [path.expanduser(i.rstrip('\n')) for i in file.readlines()]
-
-
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-o", "--overwrite",