diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2014-06-20 02:01:19 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2014-06-23 22:21:45 -0700 |
commit | 767e55b539246e069f254a5b0dcbb04819d6773e (patch) | |
tree | f99b62d28d601434564b33167400628315e55495 /piglit-print-commands.py | |
parent | d78e65e0862472a3506e28eb6ee3945e190bca5a (diff) |
core.py: rename Environment to Options
Environment doesn't really describe what the class is (although,
honestly it's a pretty bad class design), but Options comes much closer
to what it is.
v7: - update piglit-print-commands.py
- replace instance name 'env' with 'opts'
- rename Test.ENV to Test.OPTS
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'piglit-print-commands.py')
-rwxr-xr-x | piglit-print-commands.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/piglit-print-commands.py b/piglit-print-commands.py index d88ab1c2b..7186326bb 100755 --- a/piglit-print-commands.py +++ b/piglit-print-commands.py @@ -53,9 +53,8 @@ def main(): help="Path to results folder") args = parser.parse_args() - # Set the environment, pass in the included and excluded tests - env = core.Environment(exclude_filter=args.exclude_tests, - include_filter=args.include_tests) + opts = core.Options(exclude_filter=args.exclude_tests, + include_filter=args.include_tests) # Change to the piglit's path piglit_dir = path.dirname(path.realpath(sys.argv[0])) @@ -76,7 +75,7 @@ def main(): command += ' '.join(testCommand) return command - profile._prepare_test_list(env) + profile._prepare_test_list(opts) for name, test in profile.test_list.items(): assert(isinstance(test, Test)) print(name, ':::', getCommand(test)) |