git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctdb-tests: Avoid bulk output in $out, prefer $outfile
[vlendec/samba-autobuild/.git]
/
ctdb
/
tests
/
simple
/
80_ctdb_traverse.sh
diff --git
a/ctdb/tests/simple/80_ctdb_traverse.sh
b/ctdb/tests/simple/80_ctdb_traverse.sh
index 544d8932cd966fd1250b33f1f55961a13f748471..d28f9c2814e1ad9be38d9a6b459c49a24237452d 100755
(executable)
--- a/
ctdb/tests/simple/80_ctdb_traverse.sh
+++ b/
ctdb/tests/simple/80_ctdb_traverse.sh
@@
-58,7
+58,7
@@
done
echo "Start a traverse and collect records"
try_command_on_node 0 $CTDB catdb $TESTDB
echo "Start a traverse and collect records"
try_command_on_node 0 $CTDB catdb $TESTDB
-num_read=$(
echo "$out" | tail -n 1
| cut -d\ -f2)
+num_read=$(
tail -n 1 "$outfile"
| cut -d\ -f2)
if [ $num_read -eq $num_records ]; then
echo "GOOD: All $num_records records retrieved"
status=0
if [ $num_read -eq $num_records ]; then
echo "GOOD: All $num_records records retrieved"
status=0