forked from p15670423/monkey
BB: Catch KeyError and log a warning message when starting single tests
This commit is contained in:
parent
759de2a055
commit
7a9ab9c58a
|
@ -42,7 +42,12 @@ def GCPHandler(request, no_gcp, machines_to_start):
|
|||
if not no_gcp:
|
||||
list_machines = GCP_TEST_MACHINE_LIST
|
||||
if machines_to_start:
|
||||
try:
|
||||
list_machines = GCP_SINGLE_TEST_LIST[machines_to_start]
|
||||
except KeyError as err:
|
||||
LOGGER.warning(
|
||||
f"Partial or wrong test name provided. " f"Starting all GCP machines:{err}"
|
||||
)
|
||||
try:
|
||||
initialize_gcp_client()
|
||||
start_machines(list_machines)
|
||||
|
|
Loading…
Reference in New Issue