Ray Milkey
Committed by Gerrit Code Review

Improve debugability by capturing intents command output

Change-Id: I5c7b39b101e709bb4ef57159cd31b6caeaa26fcd
...@@ -12,7 +12,8 @@ target=${1:-$OCI} ...@@ -12,7 +12,8 @@ target=${1:-$OCI}
12 12
13 set -x 13 set -x
14 for i in 1 2 3; do 14 for i in 1 2 3; do
15 - onos $target "onos:intents" | grep "state=$2" >> $aux && cat $aux && exit 0 15 + onos $target "onos:intents" >> $aux
16 + grep "state=$2" $aux && cat $aux && exit 0
16 sleep 1 17 sleep 1
17 done 18 done
18 19
......