d-iii-s / msim

Light-weight MIPS R4000 and RISC-V system simulator
https://d3s.mff.cuni.cz/software/msim/
GNU General Public License v2.0
5 stars 5 forks source link

Wrong load in bats system tests #35

Closed HanyzPAPU closed 1 year ago

HanyzPAPU commented 1 year ago

When running bats system tests with version Bats 1.2.0-dev all the tests are skipped.

Output:

$ bats tests/system/basic.bats 
bats: ~/msim/tests/system/common.bash.bash does not exist
bats: ~/msim/tests/system/common.bash.bash does not exist
bats: ~/msim/tests/system/common.bash.bash does not exist
bats: ~/msim/tests/system/common.bash.bash does not exist
bats: ~/msim/tests/system/common.bash.bash does not exist

5 tests, 0 failures, 5 not run

I think this problem is on line 3 of tests/system/basic.bats: load "common.bash". It seems bats adds an extra .bash at the end of the filename.

Removing the .bash from the load fixes this problem for me. (changing the line to load "common")

vhotspur commented 1 year ago

Thanks for reporting, fixed.