Class TestProcessUtils
java.lang.Object
ubic.gemma.core.util.test.TestProcessUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA shell command that writes this many bytes to standard error: more than a pipe buffer holds (64 KiB on Linux, up to 64 KiB on macOS), so a child running it blocks until the parent reads its standard error. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessstartJavaProcess(Class<?> mainClass, String... argv) Start a Java process that inherits the current process's environment and classpath.static PathwriteShellScript(Path dir, String name, String body) Write an executable POSIX shell script to stand in for an external program.
-
Field Details
-
FILL_STDERR
A shell command that writes this many bytes to standard error: more than a pipe buffer holds (64 KiB on Linux, up to 64 KiB on macOS), so a child running it blocks until the parent reads its standard error.- See Also:
-
-
Constructor Details
-
TestProcessUtils
public TestProcessUtils()
-
-
Method Details
-
writeShellScript
Write an executable POSIX shell script to stand in for an external program.- Throws:
IOException
-
startJavaProcess
Start a Java process that inherits the current process's environment and classpath.- Throws:
IOException
-