Committed by
Gerrit Code Review
Improve debugability by capturing intents command output
Change-Id: I5c7b39b101e709bb4ef57159cd31b6caeaa26fcd
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or login to post a comment