looks like UI options does not work yet :( trying to make command line option a bit more usable

This commit is contained in:
rusefi 2019-12-21 16:04:03 -05:00
parent 8c333c0bc8
commit 7a08c18ad6
3 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
build/
build_kinetis/
out/
logs/
blbuild/
Debug_EMS/
Release_EMS/

3
firmware/run_hw_test.bat Normal file
View File

@ -0,0 +1,3 @@
set port=%1
echo "Port (optional): %port%"
java -jar ../java_console_binary/rusefi_console.jar functional_test %port%

View File

@ -324,7 +324,9 @@ public class Launcher {
String toolName = args.length == 0 ? null : args[0];
if (TOOL_NAME_FUNCTIONAL_TEST.equals(toolName)) {
RealHwTest.main(new String[0]);
// passing port argument if it was specified
String[] toolArgs = args.length == 1 ? new String[0] : new String[]{args[1]};
RealHwTest.main(toolArgs);
return;
}