commit 997465cfa8080f04bbe368549d9e11e83f23a1e5
Author: Jim Meyering <meyering(a)redhat.com>
Date: Thu Apr 21 21:46:58 2011 +0200
tests: redirect mongod --help's stdout to /dev/null
* t/basic: as above. Suggestion from Pete Zaitcev.
t/basic | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/t/basic b/t/basic
index 3e88db9..800c08d 100644
--- a/t/basic
+++ b/t/basic
@@ -17,7 +17,7 @@ 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_ "the mongod program is not installed"
+mongod --help > /dev/null || fail_ "the mongod program is not installed"
mongod --port $m_port --pidfilepath mongod/pid --dbpath mongod > mongod.log
2>&1 &
mongo_pid=$!
Show replies by date