From 0ce90bf6eeb023aecc7d666b53855c4e7d6ff299 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Fri, 17 Jan 2020 14:35:38 +0100 Subject: Fix condition for checking if tests are defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Native shell conditional is used as previously the condition would give warnings on stderr in certain cases, e.g. when role was removed script reported: "find: ‘ansible/roles/’: No such file or directory" Change-Id: I63f50bda94e144a17307d927a6be70ae270f28bf Signed-off-by: Bartek Grzybowski Issue-ID: OOM-1853 --- offline-installer-review.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'offline-installer-review.sh') diff --git a/offline-installer-review.sh b/offline-installer-review.sh index 3e011ea2..69f438dd 100755 --- a/offline-installer-review.sh +++ b/offline-installer-review.sh @@ -36,7 +36,7 @@ function run_molecule() { local MOLECULE_RC for role in ${roles[@]} do - if `find ${role} -name molecule.yml | grep -q '.*'`; then + if [ -f ${role}/molecule/default/molecule.yml ]; then ./ansible/test/bin/ci-molecule.sh ${role} MOLECULE_RC=$? if [ ${MOLECULE_RC} -ne "0" ]; then FAILED_ROLES+=(${role}); fi -- cgit 1.2.3-korg