diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-30 11:18:34 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-05-02 17:54:00 -0700 |
commit | 72aa818819904f495bdce496bbfeb4527598181f (patch) | |
tree | 82ab1be7102ab51284b46878f6010a047dc21263 /piglit-print-commands.py | |
parent | d10bc0363537da9751d0eabec41d1f8639f229f7 (diff) |
framework: simplify imports in piglit-print-commands.py
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'piglit-print-commands.py')
-rwxr-xr-x | piglit-print-commands.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/piglit-print-commands.py b/piglit-print-commands.py index f7a3be76f..68977ccaa 100755 --- a/piglit-print-commands.py +++ b/piglit-print-commands.py @@ -30,10 +30,9 @@ import os import sys sys.path.append(os.path.dirname(os.path.realpath(sys.argv[0]))) -from framework import options +from framework import options, profile from framework.programs import parsers from framework.test import Test, GleanTest -import framework.profile def main(): @@ -63,7 +62,7 @@ def main(): piglit_dir = os.path.dirname(os.path.realpath(sys.argv[0])) os.chdir(piglit_dir) - profile = framework.profile.load_test_profile(args.testProfile) + profile_ = profile.load_test_profile(args.testProfile) def getCommand(test): command = '' @@ -78,8 +77,8 @@ def main(): command += ' '.join(testCommand) return command - profile._prepare_test_list() - for name, test in profile.test_list.items(): + profile_._prepare_test_list() + for name, test in profile_.test_list.items(): assert(isinstance(test, Test)) print(name, ':::', getCommand(test)) |