Commit 642f73aa authored by Dylan Baker's avatar Dylan Baker

piglit-run.py: Remove unused imports

v2: - remove duplicate core imports
Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
parent c02767e9
...@@ -27,12 +27,9 @@ import sys ...@@ -27,12 +27,9 @@ import sys
import os import os
import os.path as path import os.path as path
import time import time
import traceback
sys.path.append(path.dirname(path.realpath(sys.argv[0]))) sys.path.append(path.dirname(path.realpath(sys.argv[0])))
import framework.core as core import framework.core as core
from framework.core import PIGLIT_CONFIG
from framework.threads import synchronized_self
def main(): def main():
...@@ -101,10 +98,11 @@ def main(): ...@@ -101,10 +98,11 @@ def main():
# Read the config file # Read the config file
if args.config_file: if args.config_file:
PIGLIT_CONFIG.readfp(args.config_file) core.PIGLIT_CONFIG.readfp(args.config_file)
args.config_file.close() args.config_file.close()
else: else:
PIGLIT_CONFIG.read(os.path.join(os.path.dirname(__file__), 'piglit.conf')) core.PIGLIT_CONFIG.read(os.path.join(os.path.dirname(__file__),
'piglit.conf'))
# Pass arguments into Environment # Pass arguments into Environment
env = core.Environment(concurrent=args.concurrency, env = core.Environment(concurrent=args.concurrency,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment