Skip to content

Commit

Permalink
[load testing] remove extra loop and pass simulations to running scri…
Browse files Browse the repository at this point in the history
…pt (#106997)

* [load testing] remove loop and pass simulations seq

* pass string, not array to script

* pass var via export

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
dmlemeshko and kibanamachine authored Jul 29, 2021
1 parent 5067662 commit e994d14
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/scripts/jenkins_build_load_testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ do
done
echo "Simulation classes: $simulations";

IFS=',' read -ra sim_array <<< "${simulations}"

cd "$KIBANA_DIR"
source src/dev/ci_setup/setup_env.sh

Expand Down Expand Up @@ -82,14 +80,11 @@ nohup ./metricbeat > metricbeat.log 2>&1 &
popd

echo " -> Running gatling load testing"
for i in "${sim_array[@]}"; do
sleep 30
echo "Running simulation $i .."
export GATLING_SIMULATIONS="$i"
node scripts/functional_tests \
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
--config test/load/config.ts || exit 0;
done
export GATLING_SIMULATIONS="$simulations"
node scripts/functional_tests \
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
--config test/load/config.ts;


echo " -> Simulations run is finished"

Expand Down

0 comments on commit e994d14

Please sign in to comment.