mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 04:08:31 +08:00
[fix-13492]add single quotes (#13534)
* [fix-13492]add single quotes * [improve-#13201] fix test error --------- Co-authored-by: fuchanghai <‘2875334588@qq.com’>
This commit is contained in:
parent
df963f8393
commit
37939add0c
@ -84,7 +84,7 @@ public class DataxTask extends AbstractTask {
|
|||||||
*/
|
*/
|
||||||
public static final String JVM_PARAM = " --jvm=\"-Xms%sG -Xmx%sG\" ";
|
public static final String JVM_PARAM = " --jvm=\"-Xms%sG -Xmx%sG\" ";
|
||||||
|
|
||||||
public static final String CUSTOM_PARAM = " -D%s=%s";
|
public static final String CUSTOM_PARAM = " -D%s='%s'";
|
||||||
/**
|
/**
|
||||||
* python process(datax only supports version 2.7 by default)
|
* python process(datax only supports version 2.7 by default)
|
||||||
*/
|
*/
|
||||||
|
@ -157,7 +157,7 @@ public class DataxTaskTest {
|
|||||||
InputStream shellCommandInputStream = Files.newInputStream(shellCommandFile.toPath());
|
InputStream shellCommandInputStream = Files.newInputStream(shellCommandFile.toPath());
|
||||||
String shellCommandStr = FileUtils.readFile2Str(shellCommandInputStream);
|
String shellCommandStr = FileUtils.readFile2Str(shellCommandInputStream);
|
||||||
Assertions.assertEquals(shellCommandStr, "python2.7 ${DATAX_HOME}/bin/datax.py --jvm=\"-Xms1G -Xmx1G\" " +
|
Assertions.assertEquals(shellCommandStr, "python2.7 ${DATAX_HOME}/bin/datax.py --jvm=\"-Xms1G -Xmx1G\" " +
|
||||||
"-p \"-DDT=DT -DDS=DS\" /tmp/execution/app-id_job.json");
|
"-p \"-DDT='DT' -DDS='DS'\" /tmp/execution/app-id_job.json");
|
||||||
delete = shellCommandFile.delete();
|
delete = shellCommandFile.delete();
|
||||||
Assertions.assertTrue(delete);
|
Assertions.assertTrue(delete);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user