Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

metrics: Fix memory inside container test #5525

Merged
merged 1 commit into from
Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion metrics/density/memory_usage_inside_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function main() {
metrics_json_init

for (( i=0; i<$iterations; i++ )) do
local output=$(ctr run --memory-limit $((MEMSIZE*1024)) --rm --runtime=$CTR_RUNTIME $IMAGE busybox sh -c "$CMD" 2>&1)
local output=$(sudo -E "${CTR_EXE}" run --memory-limit $((MEMSIZE*1024)) --rm --runtime=$CTR_RUNTIME $IMAGE busybox sh -c "$CMD" 2>&1)

if [ ${output_format} = "json" ]; then
parse_results "${output}" "${memtotalAvg}" "${memfreeAvg}" "${memavailableAvg}"
Expand Down