Skip to content

Commit

Permalink
pass simulation to sript as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Jan 28, 2021
1 parent 6a64550 commit 282f8a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/scripts/jenkins_build_load_testing.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

while getopts s: flag
do
case "${flag}" in
s) simulations=${OPTARG};;
esac
done
echo "Simulation classes: $simulations";

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

Expand All @@ -25,7 +33,7 @@ echo " -> test setup"
source test/scripts/jenkins_test_setup_xpack.sh

echo " -> run gatling load testing"
GATLING_SIMULATIONS = build.AllAtOnceJourney \
GATLING_SIMULATIONS = "$simulations" \
node scripts/functional_tests \
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
--config test/load/config.ts

0 comments on commit 282f8a9

Please sign in to comment.