So, this appears to have been a general issue with re-installing bundles the same bundles to an OSGi environment without running 'refresh packages'.
In the sling junit remote and sling testing tools projects, I modified the test workflow, which used to be this: - install bundles - verify bundles are installed - activate bundles - start bundles - run tests - exit To this: - install bundles * refresh packages - verify bundles are installed - activate bundles - start bundles - run tests * uninstall bundles * refresh packages - exit I can now run the tests multiple times in the same OSGi environment, and the test results will be the same. I'm going to look into how to commit this code to the project. -- View this message in context: http://apache-sling.73963.n3.nabble.com/Subsequent-runs-of-the-same-tests-fail-if-OSGi-environment-not-restarted-tp4032920p4032955.html Sent from the Sling - Users mailing list archive at Nabble.com.