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

This commit is contained in:
christ66 committed 2014-07-21 14:48:20 -07:00
1 parent 9ac68b92dc
commit 0826f09f99
1 file changed
+1 -5
@@ -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());
}
}