Skip to content

Commit

Permalink
fix API test - replace code in loristest.yml (aces#9030)
Browse files Browse the repository at this point in the history
Fix sourcing of instrument tables in raisinbread

The drop tables script was being sourced after the instrument tables, rather than before. Since the database is being freshly sourced, the drop script doesn't need to be sourced at all.
  • Loading branch information
kongtiaowang authored Jan 30, 2024
1 parent d0982ce commit e778841
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/loristest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ jobs:
mysql ${{ env.DB_DATABASE}} -uroot -proot < SQL/0000-00-03-ConfigTables.sql
mysql ${{ env.DB_DATABASE}} -uroot -proot < SQL/0000-00-04-Help.sql
mysql ${{ env.DB_DATABASE}} -uroot -proot < SQL/0000-00-05-ElectrophysiologyTables.sql
find raisinbread/instruments/instrument_sql -name *.sql -exec sh -c "echo Sourcing {}; mysql ${{ env.DB_DATABASE}} -uroot -proot < {}" \;
find raisinbread/instruments/instrument_sql -name *.sql -not -name 9999-99-99-drop_instrument_tables.sql -exec sh -c "echo Sourcing {}; mysql ${{ env.DB_DATABASE}} -uroot -proot < {}" \;
find raisinbread/RB_files/ -name *.sql -exec sh -c "echo Sourcing {}; mysql ${{ env.DB_DATABASE}} -uroot -proot < {}" \;
- name: Source instrument schemas
run: |
find raisinbread/instruments/instrument_sql -name 0000-*.sql -exec sh -c "echo Sourcing {}; mysql ${{ env.DB_DATABASE}} -uroot -proot < {}" \;
Expand Down

0 comments on commit e778841

Please sign in to comment.