fix for CLI Should Fail with Non-Zero Exit Code on TX Test Errors

This commit is contained in:
Grahame Grieve 2024-12-31 11:03:04 +11:00
parent f687a52d7d
commit 4481b6abb2
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class TxTestsTask extends StandaloneTask{
output = Utilities.path("[tmp]");
}
boolean ok = new TxTester(new TxTester.InternalTxLoader(version), tx, false, loadExternals(externals)).setOutput(output).execute(cliContext.getModeParams(), filter);
SystemExitManager.setError(ok ? 1 : 0);
SystemExitManager.setError(ok ? 0 : 1);
SystemExitManager.finish();
}