提交 0826f09f 编写于 作者: C christ66

Use assertLogNotContains to verify that logs do not contain sleep process.

上级 9ac68b92
......@@ -47,11 +47,7 @@ public class ProcessTreeKillerTest extends HudsonTestCase {
processJob.getBuildersList().add(new Shell("ps -ef | grep sleep"));
String log = processJob.scheduleBuild2(0).get().getLog();
System.err.println("LOGS: " + log);
assertFalse("Did not properly kill task", log.contains("sleep 100000"));
assertLogNotContains("sleep 100000", processJob.scheduleBuild2(0).get());
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册