Skip to content

Commit 6f0ac74

Browse files
committed
scenario.sh recreate command
Add `recreate` command to scenario for single command to destroy and create scenario's VMs
1 parent 3ad218c commit 6f0ac74

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/bin/scenario.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,14 +975,16 @@ action_run() {
975975

976976
usage() {
977977
cat - <<EOF
978-
scenario.sh (create|boot|run|cleanup|rerun|login) scenario-script [args]
978+
scenario.sh (create|boot|run|cleanup|rerun|recreate|login) scenario-script [args]
979979
980980
create|boot -- Set up the infrastructure for the test, such as VMs.
981981
982982
run -- Run the scenario.
983983
984984
rerun -- cleanup, create, run for the same scenario.
985985
986+
recreate -- cleanup and create for the same scenario.
987+
986988
cleanup -- Remove the VMs created for the scenario.
987989
988990
login -- Login to a host for a scenario.
@@ -1019,6 +1021,10 @@ case "${action}" in
10191021
boot)
10201022
action_create "$@"
10211023
;;
1024+
recreate)
1025+
action_cleanup "$@"
1026+
action_create "$@"
1027+
;;
10221028
rerun)
10231029
action_cleanup "$@"
10241030
action_create "$@"

0 commit comments

Comments
 (0)