Skip to content
Snippets Groups Projects
Commit f40a5cfc authored by ale's avatar ale
Browse files

Always run the default integration tests

parent bc27dfcb
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,9 @@ bin_dir=$(cd "${bin_dir}" && pwd) ...@@ -8,9 +8,9 @@ bin_dir=$(cd "${bin_dir}" && pwd)
float_dir="${bin_dir}" float_dir="${bin_dir}"
log() { log() {
echo >&2 echo " ***" >&2
echo " [*] $*" >&2 echo " *** $*" >&2
echo >&2 echo " ***" >&2
} }
die() { die() {
...@@ -85,8 +85,8 @@ Commands: ...@@ -85,8 +85,8 @@ Commands:
cleanup Cleanup the test environment (turn down VMs, etc) cleanup Cleanup the test environment (turn down VMs, etc)
run Run the test suite, using the playbook specified by run Run the test suite, using the playbooks specified by
an additional command-line argument the remaining command-line arguments
If DIR is specified, chdir there before running anything. If DIR is specified, chdir there before running anything.
...@@ -113,13 +113,11 @@ case "$cmd" in ...@@ -113,13 +113,11 @@ case "$cmd" in
;; ;;
run) run)
what="${float_dir}/test/integration-test-docker.yml" for playbook in "${float_dir}/test/integration-test-docker.yml" "$@"; do
if [ $# -gt 0 ]; then log Running test playbook ${playbook}
what="$1" ${float_dir}/float run ${playbook} \
fi
log Running test playbook ${what}
${float_dir}/float run ${what} \
|| die "test playbook failed" || die "test playbook failed"
done
;; ;;
*) *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment