Skip to content

Commit

Permalink
Minor changes in integration script
Browse files Browse the repository at this point in the history
Signed-off-by: Alok Kumar Singh <[email protected]>
  • Loading branch information
akstron committed Nov 19, 2024
1 parent c329bba commit e3c6045
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions scripts/cassandra-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,25 @@ end_time=$((SECONDS + timeout))
SKIP_APPLY_SCHEMA="false"

while getopts "s" opt; do
case "${opt}" in
s)
case "${opt}" in
s)
SKIP_APPLY_SCHEMA="true"
;;
;;
*)
;;
esac
;;
esac
done

# remove flags, leave only positional args
shift $((OPTIND - 1))

usage() {
echo $"Usage: $0 <cassandra_version> <schema_version>"
exit 1
}

check_arg() {
if [ ! $# -ge 3 ]; then
if [ ! $# -eq 3 ]; then
echo "ERROR: need exactly three arguments, <cassandra_version> <schema_version> <jaeger_version>"
usage
fi
Expand Down Expand Up @@ -110,7 +113,7 @@ run_integration_test() {

healthcheck_cassandra "${major_version}"

if [ "${SKIP_APPLY_SCHEMA}" = "true" ]; then
if [ "${SKIP_APPLY_SCHEMA}" = "false" ]; then
apply_schema "$schema_version" "$primaryKeyspace"
apply_schema "$schema_version" "$archiveKeyspace"
fi
Expand Down

0 comments on commit e3c6045

Please sign in to comment.