chore: make spellcheck happy
This commit is contained in:
parent
07e46592a8
commit
90d1a0096c
|
@ -42,3 +42,12 @@ jobs:
|
||||||
PROFILE: ${{ matrix.profile }}
|
PROFILE: ${{ matrix.profile }}
|
||||||
run: |
|
run: |
|
||||||
./scripts/conf-test/run.sh
|
./scripts/conf-test/run.sh
|
||||||
|
- name: print_erlang_log
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
cat source/_build/${{ matrix.profile }}/rel/emqx/logs/erlang.log.*
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: logs-${{ matrix.profile }}
|
||||||
|
path: source/_build/${{ matrix.profile }}/rel/emqx/logs
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
PROFILE="${PROFILE:-emqx}"
|
PROFILE="${PROFILE:-emqx}"
|
||||||
EMQX_ROOT="${EMQX_ROOT:-_build/$PROFILE/rel/emqx}"
|
EMQX_ROOT="${EMQX_ROOT:-_build/$PROFILE/rel/emqx}"
|
||||||
EMQX_WAIT_FOR_START="${EMQX_WAIT_FOR_START:-30}"
|
EMQX_WAIT_FOR_START="${EMQX_WAIT_FOR_START:-30}"
|
||||||
|
@ -7,8 +9,8 @@ export EMQX_WAIT_FOR_START
|
||||||
|
|
||||||
start_emqx_with_conf() {
|
start_emqx_with_conf() {
|
||||||
echo "Starting $PROFILE with $1"
|
echo "Starting $PROFILE with $1"
|
||||||
$EMQX_ROOT/bin/emqx start
|
"$EMQX_ROOT"/bin/emqx start
|
||||||
$EMQX_ROOT/bin/emqx stop
|
"$EMQX_ROOT"/bin/emqx stop
|
||||||
}
|
}
|
||||||
|
|
||||||
MINOR_VSN=$(./pkg-vsn.sh "$PROFILE" | cut -d. -f1,2)
|
MINOR_VSN=$(./pkg-vsn.sh "$PROFILE" | cut -d. -f1,2)
|
||||||
|
@ -21,13 +23,13 @@ fi
|
||||||
|
|
||||||
FILES=$(ls ./scripts/conf-test/old-confs/$EDITION-v"$MINOR_VSN"*)
|
FILES=$(ls ./scripts/conf-test/old-confs/$EDITION-v"$MINOR_VSN"*)
|
||||||
|
|
||||||
cp $EMQX_ROOT/etc/emqx.conf $EMQX_ROOT/etc/emqx.conf.bak
|
cp "$EMQX_ROOT"/etc/emqx.conf "$EMQX_ROOT"/etc/emqx.conf.bak
|
||||||
cleanup() {
|
cleanup() {
|
||||||
cp $EMQX_ROOT/etc/emqx.conf.bak $EMQX_ROOT/etc/emqx.conf
|
cp "$EMQX_ROOT"/etc/emqx.conf.bak "$EMQX_ROOT"/etc/emqx.conf
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
for file in $FILES; do
|
for file in $FILES; do
|
||||||
cp $file $EMQX_ROOT/etc/emqx.conf
|
cp "$file" "$EMQX_ROOT"/etc/emqx.conf
|
||||||
start_emqx_with_conf $file
|
start_emqx_with_conf "$file"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue