File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
jbrowse/src/org/labkey/jbrowse Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,19 @@ public static class TestCase extends Assert
238238 public void testJBrowseCli () throws Exception
239239 {
240240 File exe = JBrowseManager .get ().getJbrowseCli ();
241- String output = new SimpleScriptWrapper (_log ).executeWithOutput (Arrays .asList (exe .getPath (), "help" ));
241+ SimpleScriptWrapper wrapper = new SimpleScriptWrapper (_log );
242+ wrapper .setThrowNonZeroExits (false );
243+
244+ String output = wrapper .executeWithOutput (Arrays .asList (exe .getPath (), "help" ));
245+ if (wrapper .getLastReturnCode () != 0 )
246+ {
247+ _log .error ("Non-zero exit from testJBrowseCli: " + wrapper .getLastReturnCode ());
248+ wrapper .getCommandsExecuted ().forEach (_log ::error );
249+ _log .error ("output: " );
250+ _log .error (output );
251+
252+ throw new RuntimeException ("Non-zero exit running testJBrowseCli: " + wrapper .getLastReturnCode ());
253+ }
242254
243255 assertTrue ("Malformed output" , output .contains ("Add an assembly to a JBrowse 2 configuration" ));
244256 }
You can’t perform that action at this time.
0 commit comments