summaryrefslogtreecommitdiffstats
path: root/offline-installer-review.sh
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-01-17 14:35:38 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-01-17 14:35:38 +0100
commit0ce90bf6eeb023aecc7d666b53855c4e7d6ff299 (patch)
tree51d9c5a21f022b5f98fcdeafd63ac19a0acb15e7 /offline-installer-review.sh
parent87d77c49c517e3c85d85811f40e952892e555319 (diff)
Fix condition for checking if tests are defined
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/<rolename>’: No such file or directory" Change-Id: I63f50bda94e144a17307d927a6be70ae270f28bf Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: OOM-1853
Diffstat (limited to 'offline-installer-review.sh')
-rwxr-xr-xoffline-installer-review.sh2
1 files changed, 1 insertions, 1 deletions
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