From b2765cc0a9165e723c6892bb75a732b02b72bc6e Mon Sep 17 00:00:00 2001 From: Ray Milkey Date: Tue, 25 Aug 2015 14:00:03 -0700 Subject: [PATCH] Improve debugability by capturing intents command output Change-Id: I5c7b39b101e709bb4ef57159cd31b6caeaa26fcd --- tools/test/bin/onos-check-intent | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test/bin/onos-check-intent b/tools/test/bin/onos-check-intent index 900373b936..03c3215338 100755 --- a/tools/test/bin/onos-check-intent +++ b/tools/test/bin/onos-check-intent @@ -12,7 +12,8 @@ target=${1:-$OCI} set -x for i in 1 2 3; do - onos $target "onos:intents" | grep "state=$2" >> $aux && cat $aux && exit 0 + onos $target "onos:intents" >> $aux + grep "state=$2" $aux && cat $aux && exit 0 sleep 1 done