[Piglit] [PATCH 2/2] piglit-print-commands.py: Remove deprecated options

Dylan Baker baker.dylan.c at gmail.com
Thu Jul 25 12:10:37 PDT 2013


This patch removes deprecated options from piglit-print-commands.
---
 piglit-print-commands.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/piglit-print-commands.py b/piglit-print-commands.py
index fb5510c..14b79e1 100755
--- a/piglit-print-commands.py
+++ b/piglit-print-commands.py
@@ -46,12 +46,6 @@ def main():
                     action  = "append",
                     metavar = "<regex>",
                     help    = "Run only matching tests (can be used more than once)")
-    parser.add_argument("--tests",
-                    default = [],
-                    action  = "append",
-                    metavar = "<regex>",
-                    help    = "Run only matching tests (can be used more than once)" \
-                                      "Deprecated")
     parser.add_argument("-x", "--exclude-tests",
                     default = [],
                     action  = "append",
@@ -63,14 +57,6 @@ def main():
 
     args = parser.parse_args()
 
-    # Deprecated
-    # --include-tests is the standard going forward, but for backwards
-    # compatability merge args.tests into args.include_tests and drop
-    # duplicates
-    if args.tests != []:
-        print "Warnings: Option --tests is deprecated, use --include-tests"
-        args.include_tests = list(set(args.include_tests + args.tests))
-
     # Set the environment, pass in the included and excluded tests
     env = core.Environment(
                     exclude_filter=args.exclude_tests,
-- 
1.8.3.1



More information about the Piglit mailing list