Sporadic test failure of OSGiIT.listBundles on Buildbot
Remove outdated code relating to the old buildbot
*/
package org.apache.jackrabbit.oak.osgi;
-import static java.lang.System.getenv;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assume.assumeTrue;
import static org.ops4j.pax.exam.CoreOptions.bundle;
import static org.ops4j.pax.exam.CoreOptions.frameworkProperty;
import static org.ops4j.pax.exam.CoreOptions.junitBundles;
@@ -86,7 +84,6 @@ public class OSGiIT {
@Test
public void bundleStates() {
- assumeTrue(!buildBotTrunkLinux());
for (Bundle bundle : context.getBundles()) {
assertEquals(
String.format("Bundle %s not active. have a look at the logs", bundle.toString()),
@@ -96,18 +93,11 @@ public class OSGiIT {
@Test
public void listBundles() {
- assumeTrue(!buildBotTrunkLinux()); // FIXME OAK-2374: fails often on http://ci.apache.org/builders/oak-trunk.
for (Bundle bundle : context.getBundles()) {
System.out.println(bundle);
}
}
- // FIXME this is a copy of CIHelper.buildBotTrunkLinux() due to OSGi/Maven shortcomings. See OAK-2374
- private static boolean buildBotTrunkLinux() {
- String user = getenv("USER");
- return user != null && user.startsWith("buildslave3");
- }
-
@Test
public void listServices() throws InvalidSyntaxException {
for (ServiceReference reference
