Move test inside if block to prevent premature exit 57/114457/1
authorTodd Malsbary <todd.malsbary@intel.com>
Tue, 20 Oct 2020 18:14:33 +0000 (11:14 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Fri, 30 Oct 2020 23:27:03 +0000 (16:27 -0700)
commit151b455f841b89e026427ce967fb1a0864e36cb9
tree5c23399678b14bc5312a1708f8794dd726398728
parent0c352ef0d74d4b51a0fce5123b34a6753e8ab6a4
Move test inside if block to prevent premature exit

grep returns a non-zero error code if the pattern is not found.  This
would cause the topology-manager.sh test to exit prematurely instead
of capturing and logging the error and returning zero as intended.

Issue-ID: MULTICLOUD-1240
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I29c4d30630c0f803325c2ed024d4c0b9e8a0e911
kud/tests/topology-manager.sh