File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
jbrowse/src/org/labkey/jbrowse Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1717package org .labkey .jbrowse ;
1818
1919import org .apache .commons .lang3 .SystemUtils ;
20+ import org .apache .logging .log4j .Level ;
2021import org .apache .logging .log4j .LogManager ;
2122import org .apache .logging .log4j .Logger ;
2223import org .jetbrains .annotations .Nullable ;
@@ -237,6 +238,8 @@ public void testJBrowseCli() throws Exception
237238 {
238239 File exe = JBrowseManager .get ().getJbrowseCli ();
239240 SimpleScriptWrapper wrapper = new SimpleScriptWrapper (_log );
241+ wrapper .setLogLevel (Level .INFO );
242+ wrapper .setLogPath (true );
240243 wrapper .setThrowNonZeroExits (false );
241244
242245 String output = wrapper .executeWithOutput (Arrays .asList (exe .getPath (), "help" ));
@@ -247,6 +250,16 @@ public void testJBrowseCli() throws Exception
247250 _log .error ("output: " );
248251 _log .error (output );
249252
253+ // Repeat without output going direct to the server log:
254+ try
255+ {
256+ wrapper .execute (Arrays .asList (exe .getPath (), "help" ));
257+ }
258+ catch (Exception e )
259+ {
260+ // Ignore
261+ }
262+
250263 throw new RuntimeException ("Non-zero exit running testJBrowseCli: " + wrapper .getLastReturnCode ());
251264 }
252265
You can’t perform that action at this time.
0 commit comments