test: remove --use-http1 test runner flag
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 8 Jan 2015 12:37:32 +0000 (13:37 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 8 Jan 2015 22:21:18 +0000 (23:21 +0100)
The flag was used for a short while during the v0.5 development cycle,
four years ago.  Remove it, it's long overdue.

PR-URL: https://github.com/iojs/io.js/pull/262
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Makefile
tools/test.py

index 27ffb11..ec22487 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -99,9 +99,6 @@ test: all
 test-parallel: all
        $(PYTHON) tools/test.py --mode=release parallel -J
 
-test-http1: all
-       $(PYTHON) tools/test.py --mode=release --use-http1 sequential parallel message
-
 test-valgrind: all
        $(PYTHON) tools/test.py --mode=release --valgrind sequential parallel message
 
@@ -128,9 +125,6 @@ test-all: test-build test/gc/node_modules/weak/build/Release/weakref.node
        $(PYTHON) tools/test.py --mode=debug,release
        make test-npm
 
-test-all-http1: test-build
-       $(PYTHON) tools/test.py --mode=debug,release --use-http1
-
 test-all-valgrind: test-build
        $(PYTHON) tools/test.py --mode=debug,release --valgrind
 
index 7241f16..b24ca9b 100755 (executable)
@@ -1235,8 +1235,6 @@ def BuildOptions():
   result.add_option("--snapshot", help="Run the tests with snapshot turned on",
       default=False, action="store_true")
   result.add_option("--special-command", default=None)
-  result.add_option("--use-http1", help="Pass --use-http1 switch to node",
-      default=False, action="store_true")
   result.add_option("--valgrind", help="Run tests through valgrind",
       default=False, action="store_true")
   result.add_option("--cat", help="Print the source of the tests",
@@ -1397,11 +1395,6 @@ def Main():
   buildspace = dirname(shell)
 
   processor = GetSpecialCommandProcessor(options.special_command)
-  if options.use_http1:
-    def wrap(processor):
-      return lambda args: processor(args[:1] + ['--use-http1'] + args[1:])
-    processor = wrap(processor)
-
   context = Context(workspace,
                     buildspace,
                     VERBOSE,