Skip to content

Commit

Permalink
fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 committed Mar 28, 2024
1 parent 8c66e35 commit dda6608
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/scripts/e2e-sql-migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Exits as soon as any line fails.
set -euo pipefail

export RW_PREFIX=$PWD/.risingwave
export RW_PREFIX_DATA=$RW_PREFIX/data

source ci/scripts/common.sh

while getopts 'p:' opt; do
Expand Down Expand Up @@ -37,12 +40,12 @@ echo "--- restart etcd"
cargo make dev ci-meta-etcd-for-migration

echo "--- run migration"
mkdir -p "${PREFIX_DATA}/sqlite/"
mkdir -p "${RW_PREFIX_DATA}/sqlite/"
./target/debug/risectl \
meta \
migration \
--etcd-endpoints localhost:2388 \
--sql-endpoint sqlite://"${PREFIX_DATA}/sqlite/metadata.db"\?mode=rwc \
--sql-endpoint sqlite://"${RW_PREFIX_DATA}/sqlite/metadata.db"\?mode=rwc \
-f

echo "--- kill etcd"
Expand Down

0 comments on commit dda6608

Please sign in to comment.