mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +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}"
|
touch "${host_trigger_file}"
|
||||||
info "All containers are running the workload..."
|
info "All containers are running the workload..."
|
||||||
|
|
||||||
for i in "${containers[@]}"; do
|
collect_results "${CMD_FILE}"
|
||||||
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
|
|
||||||
|
|
||||||
for i in "${containers[@]}"; do
|
for i in "${containers[@]}"; do
|
||||||
sudo -E "${CTR_EXE}" t exec --exec-id "$(random_name)" "${i}" sh -c "${CMD_RESULTS}" >> "${tensorflow_file}"
|
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