summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2018-12-20 20:31:59 +0300
committerBen Pfaff <blp@ovn.org>2018-12-20 10:15:16 -0800
commitb6c9325b57b1da6e23caffe06b236f592a0fae2b (patch)
tree45e2ae617b49a78b11d581300ba51af309bb4e3c /tests
parent217ac0943d3f8ef98d2048fea5009d8b08283ae2 (diff)
downloadopenvswitch-b6c9325b57b1da6e23caffe06b236f592a0fae2b.tar.gz
ovsdb-cluster.at: Make torture tests BSD compliant.
'read' requires explicit argument. 'sed' partially replaced with more portable 'tr' because '\n' could not be recognized as a line break. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/ovsdb-cluster.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ovsdb-cluster.at b/tests/ovsdb-cluster.at
index acc5cdde8..c7f1e344c 100644
--- a/tests/ovsdb-cluster.at
+++ b/tests/ovsdb-cluster.at
@@ -152,7 +152,7 @@ ovsdb|WARN|schema: changed 2 columns in 'OVN_Southbound' database from ephemeral
# Use file instead of var because code inside "while" runs in a subshell.
echo 0 > phase
i=0
- (while :; do echo; sleep 1; done) | while read; do
+ (while :; do echo; sleep 1; done) | while read REPLY; do
printf "t=%2d s:" $i
done=0
for j in $(seq 0 $(expr $n1 - 1)); do
@@ -201,7 +201,7 @@ ovsdb|WARN|schema: changed 2 columns in 'OVN_Southbound' database from ephemeral
echo "$i-$j=$i-$j"
done
done | sort > expout
- AT_CHECK([ovn-sbctl --timeout=30 --log-file=finalize.log -vtimeval:off -vfile -vsyslog:off --bare get SB_Global . external-ids | sed 's/, /\n/g; s/[[{}""]]//g;' | sort], [0], [expout])
+ AT_CHECK([ovn-sbctl --timeout=30 --log-file=finalize.log -vtimeval:off -vfile -vsyslog:off --bare get SB_Global . external-ids | tr ',' '\n' | sed 's/[[{}"" ]]//g' | sort], [0], [expout])
for i in `seq $n`; do
if test $i != $victim || test $(cat phase) != 1; then