Skip to content

Commit f23d798

Browse files
committed
Debug test failure
1 parent 5cc0962 commit f23d798

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

jbrowse/src/org/labkey/jbrowse/JBrowseManager.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import org.labkey.api.security.permissions.InsertPermission;
4444
import org.labkey.api.sequenceanalysis.SequenceAnalysisService;
4545
import org.labkey.api.sequenceanalysis.pipeline.ReferenceGenome;
46+
import org.labkey.api.sequenceanalysis.run.AbstractCommandWrapper;
4647
import org.labkey.api.sequenceanalysis.run.SimpleScriptWrapper;
4748
import org.labkey.api.util.FileType;
4849
import org.labkey.api.util.FileUtil;
@@ -247,6 +248,19 @@ public void testJBrowseCli() throws Exception
247248
{
248249
_log.error("Non-zero exit from testJBrowseCli: " + wrapper.getLastReturnCode());
249250
wrapper.getCommandsExecuted().forEach(_log::error);
251+
_log.error("NODE_PATH: " + System.getenv("NODE_PATH"));
252+
253+
File node = AbstractCommandWrapper.resolveFileInPath("node", null, false);
254+
if (node == null)
255+
{
256+
_log.info("Unable to find node in PATH, trying node.exe");
257+
node = AbstractCommandWrapper.resolveFileInPath("node.exe", null, false);
258+
if (node == null)
259+
{
260+
_log.info("Unable to find node.exe in PATH");
261+
}
262+
}
263+
250264
_log.error("output: ");
251265
_log.error(output);
252266

0 commit comments

Comments
 (0)