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

Move "float run" from test-driver "init" command to "run"

parent a6777e6f
No related branches found
No related tags found
No related merge requests found
...@@ -72,10 +72,6 @@ run_init() { ...@@ -72,10 +72,6 @@ run_init() {
log Running init-credentials playbook log Running init-credentials playbook
${float_dir}/float run init-credentials.yml \ ${float_dir}/float run init-credentials.yml \
|| die "failed to run the init-credentials playbook" || die "failed to run the init-credentials playbook"
log Running main playbook
${float_dir}/float run site.yml \
|| die "failed to run the main playbook"
} }
run_cleanup() { run_cleanup() {
...@@ -90,14 +86,15 @@ Usage: test-driver [COMMAND] [DIR] ...@@ -90,14 +86,15 @@ Usage: test-driver [COMMAND] [DIR]
Commands: Commands:
init Initialize the test environment (turn up VMs, set up init Initialize the test environment (turn up VMs, set up
credentials, run the main float playbook) credentials, ensure VMs are reachable)
wait-ready Wait until the VMs are ready (part of "init") wait-ready Wait until the VMs are ready (part of "init")
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 playbooks specified by run Run the main float playbook, and the test suite, using
the remaining command-line arguments the playbooks specified by the remaining command-line
arguments
If DIR is specified, chdir there before running anything. If DIR is specified, chdir there before running anything.
...@@ -138,6 +135,10 @@ case "$cmd" in ...@@ -138,6 +135,10 @@ case "$cmd" in
;; ;;
run) run)
log Running main playbook
${float_dir}/float run site.yml \
|| die "failed to run the main playbook"
for playbook in "${float_dir}/test/integration-test.yml" "$@"; do for playbook in "${float_dir}/test/integration-test.yml" "$@"; do
log Running test playbook ${playbook} log Running test playbook ${playbook}
${float_dir}/float run ${playbook} \ ${float_dir}/float run ${playbook} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment