Skip to content

Commit 3141efe

Browse files
committed
fix dashboard screengrabs location
1 parent d0fbd2c commit 3141efe

File tree

1 file changed

+5
-0
lines changed
  • scaletest/templates/scaletest-runner/scripts

1 file changed

+5
-0
lines changed

scaletest/templates/scaletest-runner/scripts/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ for scenario in "${SCALETEST_PARAM_LOAD_SCENARIOS[@]}"; do
243243
target_start=0
244244
target_end=${target_count}
245245
fi
246+
# TODO: Remove this once the dashboard traffic command is fixed,
247+
# (i.e. once images are no longer dumped into PWD).
248+
mkdir -p dashboard
249+
pushd dashboard
246250
run_scenario_cmd "${scenario}" coder exp scaletest dashboard \
247251
--timeout "${SCALETEST_PARAM_LOAD_SCENARIO_DASHBOARD_TRAFFIC_DURATION}m" \
248252
--job-timeout "${SCALETEST_PARAM_LOAD_SCENARIO_DASHBOARD_TRAFFIC_DURATION}m30s" \
@@ -251,6 +255,7 @@ for scenario in "${SCALETEST_PARAM_LOAD_SCENARIOS[@]}"; do
251255
--target-users "${target_start}:${target_end}" \
252256
>"${SCALETEST_RESULTS_DIR}/traffic-dashboard-output.log" &
253257
pids+=($!)
258+
popd
254259
if [[ ${SCALETEST_PARAM_LOAD_SCENARIO_RUN_CONCURRENTLY} == 0 ]]; then
255260
wait "${pids[-1]}"
256261
status=$?

0 commit comments

Comments
 (0)