aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org/sonarsource/scanner/cli/CliTest.java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2019-03-15 14:31:27 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2019-03-15 21:19:59 +0100
commit03a5ab2517615d93d071aca18a3900f44b3b7dab (patch)
tree92b2be7d90d75ee4067873706368893df9fe6fb4 /src/test/java/org/sonarsource/scanner/cli/CliTest.java
parentfe6edeb839d98c4c8a5b4bf66fb92349fc9e58fa (diff)
downloadsonar-scanner-cli-03a5ab2517615d93d071aca18a3900f44b3b7dab.tar.gz
sonar-scanner-cli-03a5ab2517615d93d071aca18a3900f44b3b7dab.zip
SQSCANNER-58 Return a different error code for functional errors
Diffstat (limited to 'src/test/java/org/sonarsource/scanner/cli/CliTest.java')
-rw-r--r--src/test/java/org/sonarsource/scanner/cli/CliTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/sonarsource/scanner/cli/CliTest.java b/src/test/java/org/sonarsource/scanner/cli/CliTest.java
index 8072be5..c843ff6 100644
--- a/src/test/java/org/sonarsource/scanner/cli/CliTest.java
+++ b/src/test/java/org/sonarsource/scanner/cli/CliTest.java
@@ -53,7 +53,7 @@ public class CliTest {
cli = new Cli(exit, logs);
cli.parse(new String[] {"-D"});
verify(logs).error("Missing argument for option -D/--define");
- verify(exit).exit(Exit.ERROR);
+ verify(exit).exit(Exit.INTERNAL_ERROR);
}
@Test
@@ -142,7 +142,7 @@ public class CliTest {
cli.parse(new String[] {"-w"});
verify(logs).error("Unrecognized option: -w");
verify(logs).info("usage: sonar-scanner [options]");
- verify(exit).exit(Exit.ERROR);
+ verify(exit).exit(Exit.INTERNAL_ERROR);
}
@Test