Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit eec37a5

Browse files
committed
Make sure RESULT_DIR exists before writing raw data
1 parent a601f14 commit eec37a5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

metrics/scaling/k8s_scale_nc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ run() {
335335
sleep ${settle_time}
336336

337337
if [[ ${nc_reqs_per_pod} -ge 1 ]]; then
338+
mkdir -p "$RESULT_DIR" 2>/dev/null || true
338339
local latency_raw_output="$RESULT_DIR/${TEST_NAME// /-}.t_pods_round_ip_latency_fail_rx.raw"
339340
pod_ips=$(kubectl get pods --selector ${LABEL}=${LABELVALUE} -o json | jq -r '.items[].status.podIP')
340341
if [[ ${reqs} != $(echo $pod_ips | wc -w) ]]; then

0 commit comments

Comments
 (0)