[fix] tornado-test.py
@@ -228,8 +228,9 @@ def runTests(args):
cmd = "tornado " + options
if (javaVersion == JDK_11_VERSION):
- cmd += " -m " + __MAIN_TORNADO_TEST_RUNNER_MODULE__
- cmd += __MAIN_TORNADO_TEST_RUNNER__
+ cmd += " -m " + __MAIN_TORNADO_TEST_RUNNER_MODULE__ + __MAIN_TORNADO_TEST_RUNNER__
+ else:
+ cmd += " " + __MAIN_TORNADO_TEST_RUNNER__
if (args.testClass != None):
@@ -273,9 +274,9 @@ def runWithJUnit(args):
cmd = "tornado "
if (javaVersion == JDK_11_VERSION):
- cmd += " -m " + __MAIN_TORNADO_JUNIT_MODULE__
-
- cmd += __MAIN_TORNADO_JUNIT__
+ cmd += " -m " + __MAIN_TORNADO_JUNIT_MODULE__ + __MAIN_TORNADO_JUNIT__
+ else:
+ cmd += " " + __MAIN_TORNADO_JUNIT__
if (args.testClass != None):
cmd = cmd + args.testClass
@@ -327,6 +328,7 @@ def main():
getJavaVersion()
+
if (args.junit):
runWithJUnit(args)
else:
