summaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
Diffstat (limited to 'csit')
-rw-r--r--csit/plans/healthcheck/setup.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/csit/plans/healthcheck/setup.sh b/csit/plans/healthcheck/setup.sh
index 327aba21..dddecbf0 100644
--- a/csit/plans/healthcheck/setup.sh
+++ b/csit/plans/healthcheck/setup.sh
@@ -77,12 +77,12 @@ if [ "$TIME" -ge "$TIME_OUT" ]; then
exit 1;
fi
-num_bundles=$(docker exec -i ccsdk_odlsli_container /opt/opendaylight/current/bin/client bundle:list | tail -1 | cut -d' ' -f1)
+num_bundles=$(docker exec -i ccsdk_odlsli_container sh -c "echo '' | /opt/opendaylight/current/bin/client bundle:list" | tail -1 | cut -d' ' -f1)
if [ "$num_bundles" -ge 333 ]; then
- num_bundles=$(docker exec -i ccsdk_odlsli_container /opt/opendaylight/current/bin/client bundle:list | tail -1 | cut -d' ' -f1)
- num_failed_bundles=$(docker exec -i ccsdk_odlsli_container /opt/opendaylight/current/bin/client bundle:list | grep Failure | wc -l)
- failed_bundles=$(docker exec -i ccsdk_odlsli_container /opt/opendaylight/current/bin/client bundle:list | grep Failure)
+ num_bundles=$(docker exec -i ccsdk_odlsli_container sh -c "echo '' | /opt/opendaylight/current/bin/client bundle:list" | tail -1 | cut -d' ' -f1)
+ num_failed_bundles=$(docker exec -i ccsdk_odlsli_container sh -c "echo '' | /opt/opendaylight/current/bin/client bundle:list" | grep Failure | wc -l)
+ failed_bundles=$(docker exec -i ccsdk_odlsli_container sh -c "echo '' |/opt/opendaylight/current/bin/client bundle:list" | grep Failure)
echo There is/are $num_failed_bundles failed bundles out of $num_bundles installed bundles.
fi