mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
metrics: Use collect_results function in tensorflow mobilenet test
This PR uses the collect results function defined in common for the tensorflow mobilenet test. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
286de046af
commit
d3e57cf454
@ -87,14 +87,7 @@ function mobilenet_v1_bfloat16_fp32_test() {
|
||||
touch "${host_trigger_file}"
|
||||
info "All containers are running the workload..."
|
||||
|
||||
for i in "${containers[@]}"; do
|
||||
check_file=$(sudo -E "${CTR_EXE}" t exec -d --exec-id "$(random_name)" "${i}" sh -c "${CMD_FILE}")
|
||||
retries="30"
|
||||
for j in $(seq 1 "${retries}"); do
|
||||
[ "${check_file}" = 1 ] && break
|
||||
sleep 1
|
||||
done
|
||||
done
|
||||
collect_results "${CMD_FILE}"
|
||||
|
||||
for i in "${containers[@]}"; do
|
||||
sudo -E "${CTR_EXE}" t exec --exec-id "$(random_name)" "${i}" sh -c "${CMD_RESULTS}" >> "${tensorflow_file}"
|
||||
|
Loading…
Reference in New Issue
Block a user