|
|
@ -26,9 +26,9 @@ public class ProcessUtilsTest { |
|
|
|
|
|
|
|
|
|
|
|
private static final String rootPath = System.getProperty("user.dir"); |
|
|
|
private static final String rootPath = System.getProperty("user.dir"); |
|
|
|
|
|
|
|
|
|
|
|
private static final String shellFilPath = rootPath + "/dolphinscheduler-alert-plugin/dolphinscheduler-alert-script/src/test/script/shell/example.sh"; |
|
|
|
private static final String shellFilPath = rootPath + "/dolphinscheduler-alert-plugin/dolphinscheduler-alert-script/src/test/script/shell/test.sh"; |
|
|
|
|
|
|
|
|
|
|
|
private String[] cmd = {"/bin/sh", "-c", shellFilPath + " " + "testMsg" + " " + "userParams"}; |
|
|
|
private String[] cmd = {"/bin/sh", "-c", shellFilPath + " -t 1"}; |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testExecuteScript() { |
|
|
|
public void testExecuteScript() { |
|
|
|