Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
public class ExitCode extends Cmd {

private static final String EXIT_CODE_KEY = "qdupExitCode";
static final String EXIT_CODE_KEY = "qdupExitCode";
private static final String DEFAULT_EXIT_CODE = "-1";

private String expected;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ public void postRun(String output,Context context){
context.abort(false);
} else if (context.getShell().isReady() && !context.isAborted()) {
context.setCwd(pwd);
// Store exit code for ExitCode command to find without a separate shSync
with(ExitCode.EXIT_CODE_KEY, response);
if(response.matches("\\d+")){
try {
context.getCommandTimer().getData().set("exit_code", Integer.parseInt(response));
Expand Down
Loading