DPDK: add duration variable to enable longer tests (#2355)

Testing for longer durations in TiP sessions will help
shake out QoS and SLB issues, adding an option
to run for longer than 15 seconds to enable this testing
when not running in prod.
This commit is contained in:
mcgov 2022-10-31 10:27:59 -07:00 коммит произвёл GitHub
Родитель 3fbfc78d87
Коммит 57cef80ae2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -447,6 +447,10 @@ def verify_dpdk_send_receive(
raise SkippedException()
log.debug((f"\nsender:{external_ips[0]}\nreceiver:{external_ips[1]}\n"))
# get test duration variable if set
# enables long-running tests to shakeQoS and SLB issue
test_duration: int = variables.get("dpdk_test_duration", 15)
test_kits = init_nodes_concurrent(environment, log, variables, pmd)
check_send_receive_compatibility(test_kits)
@ -461,7 +465,7 @@ def verify_dpdk_send_receive(
use_service_cores=use_service_cores,
)
results = run_testpmd_concurrent(kit_cmd_pairs, 15, log)
results = run_testpmd_concurrent(kit_cmd_pairs, test_duration, log)
# helpful to have the outputs labeled
log.debug(f"\nSENDER:\n{results[sender]}")
@ -492,6 +496,10 @@ def verify_dpdk_send_receive_multi_txrx_queue(
use_service_cores: int = 1,
) -> Tuple[DpdkTestResources, DpdkTestResources]:
# get test duration variable if set
# enables long-running tests to shakeQoS and SLB issue
test_duration: int = variables.get("dpdk_test_duration", 15)
test_kits = init_nodes_concurrent(environment, log, variables, pmd)
check_send_receive_compatibility(test_kits)
@ -508,7 +516,7 @@ def verify_dpdk_send_receive_multi_txrx_queue(
use_service_cores=use_service_cores,
)
results = run_testpmd_concurrent(kit_cmd_pairs, 15, log)
results = run_testpmd_concurrent(kit_cmd_pairs, test_duration, log)
# helpful to have the outputs labeled
log.debug(f"\nSENDER:\n{results[sender]}")