Skip to content

Commit

Permalink
Fix the issue where runTest ignores arguments
Browse files Browse the repository at this point in the history
### What changes are proposed in this pull request?

Fix the issue that TestRunner related parameters have no effect.

### Why are the changes needed?
Fix the issue that TestRunner related parameters have no effect. #17066

### Does this PR introduce any user facing changes?
no

pr-link: #17068
change-id: cid-2ae4ffc5ba0ba30c99da7247d92367028d22499b
  • Loading branch information
lovewin99 committed Mar 31, 2023
1 parent 875f3f2 commit db9a763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/src/main/java/alluxio/cli/TestRunner.java
Expand Up @@ -83,11 +83,12 @@ private TestRunner() {} // prevent instantiation
/**
* Console program that validates the configuration.
*
* @param args there are no arguments needed
* @param args array of arguments given by the user's input from the terminal
*/
public static void main(String[] args) throws Exception {
TestRunner runner = new TestRunner();
JCommander jCommander = new JCommander(runner);
jCommander.parse(args);
jCommander.setProgramName("TestRunner");
if (runner.mHelp) {
jCommander.usage();
Expand Down

0 comments on commit db9a763

Please sign in to comment.