修改写测试用例的job的pipeline的bug
This commit is contained in:
parent
1fdfa739b0
commit
47503800fc
|
@ -299,11 +299,11 @@ public class GameController extends BaseController {
|
|||
}
|
||||
}
|
||||
*/
|
||||
pipeline.append("node(){\n" +"\t" + "int deleteCount=0\n"+ "\ttry{\n\tdeleteCount++" + "\n\tsh script:'rm -rf ../testCases/" + trainingID+ "'" + "\r\n\t" +
|
||||
pipeline.append("node(){\n" +"\t" +"boolean exist3 = fileExists '../testCases/" + trainingID + "/1/1.in'"+"\r\n\t" +"if(exist3)\n\t{\n\twhile(true){\n\t" + "int deleteCount=0\n"+ "\ttry{\n\tdeleteCount++" + "\n\tsh script:'rm -rf ../testCases/" + trainingID+ "'" + "\r\n\t" +
|
||||
"\n\tboolean exist = fileExists '../testCases/" + trainingID + "/1/1.in'" + "\r\n"+ "\tif(exist) continue" + "\r\n" +
|
||||
"\tif(!exist) break\n\t}" + "\r\n" + "\tcatch(err)\n\t{\n" + "\tif(deleteCount > 3) break" +
|
||||
"\n\tboolean exist2 = fileExists '../testCases/" + trainingID + "/1/1.in'" +"\r\n"
|
||||
+ "\tif(exist2) break" + "\n\tif(!exist2) break\n\t}" + "\r\n");
|
||||
+ "\tif(exist2) break" + "\n\tif(!exist2) break\n\t}\r\n\t}\r\n\t}" + "\r\n");
|
||||
JSONArray cases = JSONObject.parseArray(testCases);
|
||||
|
||||
for (int i = 0; i < cases.size(); i++) {
|
||||
|
|
|
@ -79,11 +79,11 @@ public class TestLQK {
|
|||
private static final Logger logger = LoggerFactory.getLogger(TestLQK.class);
|
||||
public static void main(String[] args) throws IOException, URISyntaxException, InterruptedException {
|
||||
int trainingID = 1111;
|
||||
String testString = "node(){\n" +"\t" + "int deleteCount=0\n"+ "\ttry{\n\tdeleteCount++" + "\n\tsh script:'rm -rf ../testCases/" + trainingID+ "'" + "\r\n\t}" +
|
||||
String testString = "node(){\n" +"\t" +"boolean exist3 = fileExists '../testCases/" + trainingID + "/1/1.in'"+"\r\n\t" +"if(exist3)\n\t{\n\twhile(true){\n\t" + "int deleteCount=0\n"+ "\ttry{\n\tdeleteCount++" + "\n\tsh script:'rm -rf ../testCases/" + trainingID+ "'" + "\r\n\t" +
|
||||
"\n\tboolean exist = fileExists '../testCases/" + trainingID + "/1/1.in'" + "\r\n"+ "\tif(exist) continue" + "\r\n" +
|
||||
"\tif(!exist) break" + "\r\n" + "\tcatch(err)\n\t{\n" + "\tif(deleteCount > 3) break" +
|
||||
"\tif(!exist) break\n\t}" + "\r\n" + "\tcatch(err)\n\t{\n" + "\tif(deleteCount > 3) break" +
|
||||
"\n\tboolean exist2 = fileExists '../testCases/" + trainingID + "/1/1.in'" +"\r\n"
|
||||
+ "\tif(exist2) break" + "\n\tif(!exist2) break\n\t}";
|
||||
+ "\tif(exist2) break" + "\n\tif(!exist2) break\n\t}\r\n\t}\r\n\t}" + "\r\n";
|
||||
System.out.println("testString:" + testString);
|
||||
// try {http://106.75.78.183:8888 。//http://106.75.96.108:8888
|
||||
// InputStream resourceAsStream = TestLQK.class
|
||||
|
|
Loading…
Reference in New Issue