mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 21:12:15 +00:00
[FIXED JENKINS-18367] Use non-zero return code in case list-jobs CLI command fails
This commit is contained in:
1 parent
5bc00fffcc
commit
1ef9cae2de
2 files changed
+2
-3
No files matched your search
@@ -58,8 +58,7 @@ public class ListJobsCommandTest {
|
||||
when(jenkins.getView(null)).thenReturn(null);
|
||||
when(jenkins.getItemByFullName(null)).thenReturn(null);
|
||||
|
||||
// TODO: One would expect -1 here
|
||||
assertThat(runWith("NoSuchViewOrItemGroup"), equalTo(0));
|
||||
assertThat(runWith("NoSuchViewOrItemGroup"), equalTo(-1));
|
||||
assertThat(stdout, is(empty()));
|
||||
assertThat(stderr, is(not(empty())));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user