git.samba.org
/
tridge
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f319bd5
)
Test suite: Add an optimisation in the getvar test.
author
Martin Schwenke
<martin@meltin.net>
Fri, 18 Dec 2009 03:43:45 +0000
(14:43 +1100)
committer
Martin Schwenke
<martin@meltin.net>
Fri, 18 Dec 2009 03:43:45 +0000
(14:43 +1100)
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/simple/03_ctdb_getvar.sh
patch
|
blob
|
history
diff --git
a/tests/simple/03_ctdb_getvar.sh
b/tests/simple/03_ctdb_getvar.sh
index 197df99b0f853c8b60a63a35a219a86872a15be9..748e329bed2ed8057e6658912e5fbe9ce7cf5f77 100755
(executable)
--- a/
tests/simple/03_ctdb_getvar.sh
+++ b/
tests/simple/03_ctdb_getvar.sh
@@
-42,7
+42,7
@@
echo "$out" |
while read var x val ; do
try_command_on_node 0 "$CTDB getvar $var"
- val2=
$(echo $out | sed -e 's@.*[[:space:]]@@')
+ val2=
"${out#*= }"
if [ "$val" != "$val2" ] ; then
echo "MISMATCH on $var: $val != $val2"