MDL-32323 prevent concurrent execution of unit tests

This commit is contained in:
Petr Skoda
2012-04-10 15:27:03 +02:00
parent 3604563c79
commit 4be2ad3660
3 changed files with 63 additions and 4 deletions
+2 -1
View File
@@ -145,8 +145,9 @@ if ($diag) {
phpunit_bootstrap_error(134);
}
} else if ($drop) {
// make sure tests do not run in parallel
phpunit_util::acquire_test_lock();
phpunit_util::drop_site();
// note: we must stop here because $CFG is messed up and we can not reinstall, sorry
exit(0);