This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project iwhd.git.
The branch, master has been updated
via 5a88451cf5e0e69635a9dc4eacbb7f2606256fcc (commit)
from 32a041e25d2c1c9d6e4c353ce8db6649aed62954 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/iwhd.git/commit/5a88451cf5e0e69635a9dc4eacbb7f2606256fcc
commit 5a88451cf5e0e69635a9dc4eacbb7f2606256fcc
Author: Jim Meyering <meyering(a)redhat.com>
Date: Tue Oct 19 16:52:17 2010 +0200
tests: avoid using a temp file in wait_for_repl utility
* t/replication (wait_for_repl): Use a variable rather than a
temporary file.
diff --git a/t/replication b/t/replication
index 902d340..78911cc 100644
--- a/t/replication
+++ b/t/replication
@@ -45,9 +45,11 @@ cleanup_() { kill -9 $mongo_pid; kill $iwhd_pid $iwhd_d_pid; }
api=http://localhost:$port
wait_for_repl() {
- curl -d op=rep_status $api > repl.out || return 1
- test "$(cat repl.out)" = "0 requests" || return 1
- return 0
+ local n_req=$(curl -d op=rep_status $api) || return 1
+ case $n_req in
+ '0 requests') return 1 ;;
+ *) return 0 ;;
+ esac
}
bkt=$api/rbucket
-----------------------------------------------------------------------
Summary of changes:
t/replication | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
repo.or.cz automatic notification. Contact project admin jim(a)meyering.net
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
iwhd.git ("image warehouse daemon")