Catch error when app has not been activated
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Nov 2010 17:03:17 +0000 (11:03 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Nov 2010 17:03:17 +0000 (11:03 -0600)
horde/test.php

index dde6800..39cdea8 100644 (file)
@@ -73,7 +73,11 @@ $app_version = $registry->getVersion($app);
 /* If we've gotten this far, we should have found enough of Horde to run
  * tests. Create the testing object. */
 if ($app != 'horde') {
-    $registry->pushApp($app, array('check_perms' => false));
+    try {
+        $registry->pushApp($app, array('check_perms' => false));
+    } catch (Exception $e) {
+        _hordeTestError($e->getMessage());
+    }
 }
 $classname = ucfirst($app) . '_Test';
 if (!class_exists($classname)) {