commit cc45ac972b56ea751f95762a39f7bfa3c2849a03
Author: Jim Meyering <meyering(a)redhat.com>
Date: Thu Apr 21 13:57:56 2011 +0200
tests: fail sooner (and with a good explanation) without mongod
* t/basic: Fail right away if mongod is not installed.
t/basic | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/t/basic b/t/basic
index dfe28cd..21859d4 100644
--- a/t/basic
+++ b/t/basic
@@ -17,6 +17,8 @@ mkdir FS mongod iwhd || framework_failure_ mkdir failed
m_port=$(get_port $mongo_base_port $lock_dir/m-) \
|| fail_ "failed to get mongodb port"
+mongod --help || fail_ "mongod is not installed"
+
mongod --port $m_port --pidfilepath mongod/pid --dbpath mongod > mongod.log
2>&1 &
mongo_pid=$!
cleanup_() { kill -9 $mongo_pid; }
Show replies by date