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 (elastic#106997) (elastic#107119)

* [load testing] remove loop and pass simulations seq

* pass string, not array to script

* pass var via export

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
  • Loading branch information
kibanamachine and dmlemeshko authored Jul 29, 2021
1 parent dca6f62 commit 1bf7d01
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 1bf7d01

Please sign in to comment.