From 67d2bee619ee6c6d26a5dbd76a887f0c9a66bbd9 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 5 Jan 2011 01:52:15 -0700 Subject: [PATCH] Only show tests links to apps that might have tests --- horde/test.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/horde/test.php b/horde/test.php index 689fd4e4d..e4c6caa87 100644 --- a/horde/test.php +++ b/horde/test.php @@ -149,8 +149,13 @@ if ($app == 'horde') { if ($name = $registry->get('name', $val)) { echo ' [' . $name . ']'; } - echo ': ' . $registry->getVersion($val) . - ' (run tests)\n"; + echo ': ' . $registry->getVersion($val); + + if (file_exists($registry->get('fileroot', $val) . '/lib/Test.php')) { + echo ' (run tests)'; + } + + echo "\n"; } } catch (Exception $e) { $init_exception = $e; -- 2.11.0