Commit 6cb792fe authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9535 avoid non-portable wc format

Use awk to count lines instead
parent 2cda679e
......@@ -610,9 +610,9 @@ $LDIFFILTER -s a < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
echo "Checking server $n can remember which entries have been deleted even after it's been restarted..."
-E "sync=ro/$cookie" 'objectclass=*' 1.1 | grep syncUUIDs | wc -l >$TESTDIR/repl.out
-E "sync=ro/$cookie" 'objectclass=*' 1.1 | awk '/syncUUIDs/ {count++} END {print count}' >$TESTDIR/repl.out
-E "sync=ro/$cookie" 'objectclass=*' 1.1 | grep SyncDone | grep "refreshDeletes=1" | wc -l >>$TESTDIR/repl.out
-E "sync=ro/$cookie" 'objectclass=*' 1.1 | grep SyncDone | awk '/refreshDeletes=1/ {count++} END {print count}' >>$TESTDIR/repl.out
$CMP $TESTDIR/repl.out $TESTDIR/repl.test > $CMPOUT
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment