-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TS-534: Get card.binary HIL tests working again. (#158)
- Use Notestation (hil_lab) infrastructure. - Use ngrok instead of tunnelmole. The latter has proven to be unreliable. - Fix the md5srv-tests, which were failing due to some issue with the bats action we were using. It's now deprecated, and I moved us to a different action that the maintainer points to as the successor.
- Loading branch information
1 parent
0bca2db
commit d4ca373
Showing
9 changed files
with
276 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,28 +15,26 @@ jobs: | |
MD5SRV_TIMEOUT: 5 | ||
MD5SRV_DIR: ./test/hitl/scripts | ||
BATS_VERSION: 1.10.0 | ||
BATS_LIB_PATH: /usr/lib | ||
# /usr/local/lib on OSX | ||
steps: | ||
- name: Setup Bats and bats libs | ||
uses: brokenpip3/[email protected] | ||
id: setup-bats | ||
uses: bats-core/[email protected] | ||
with: | ||
bats-install: true | ||
file-install: false | ||
detik-install: false | ||
- name: Setup BATS_LIB_PATH | ||
run: | | ||
if [ -e /usr/local/lib/bats-support ]; then | ||
echo "BATS_LIB_PATH=/usr/local/lib" >> $GITHUB_ENV | ||
fi | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Run Tests | ||
env: | ||
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} | ||
run: | | ||
cd ${{env.MD5SRV_DIR}} | ||
$HOME/.local/bin/bats -p --print-output-on-failure . | ||
- name: Rerun Tests | ||
bats -p --print-output-on-failure . | ||
- name: Re-run Tests | ||
if: failure() | ||
env: | ||
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} | ||
run: | | ||
cd ${{env.MD5SRV_DIR}} | ||
$HOME/.local/bin/bats -p --print-output-on-failure -x . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
. venv/bin/activate | ||
python3 ./test/hitl/scripts/md5srv.py --dir md5srv-files --save > md5srv.log 2>&1 & | ||
MD5SRV_PID=$! | ||
echo "MD5SRV_PID=$MD5SRV_PID" >> $GITHUB_ENV |
Oops, something went wrong.