Closed ganning127 closed 1 year ago
so we need a little switch/case statement for the two OSs that exhibit different behavior.
NFSRODS is fine, this is just capturing the correct expectations in the testing.
I don't think we even need to detect the difference between the OSs.
The test only needs to confirm that a non-zero error code is returned and the common part of the error message exists. Essentially, what's already reported in the BATs sample.
that's fair - if we just want to assert non-zero.
I think this may be due to the BATS (the test framework) rather than NFSRODS. For example:
rename file
and rename directory
together results in rename directory
failingrename directory
by itself results in it succeeding/bin/ls
in the rename directory
test results in the test passing in either of the cases previously mentionedExecuting the commands manually succeed too, so this makes me think we may have written a bad test.
This situation turned out to NOT be BATS.
This was an actual bug in the implementation where we weren't clearing some caches at the correct moments.
With the recent commits, the tests pass consistently.
Wild. Thanks tests!
create, list, rename, copy, move, and remove file should be (to account for linux vs macOS)
failing on linux, but not on macOS (on
46.main.restart
branch)ocasionally failing on macOS (on
main
), but can't re-produce. it's happened once or twice out of all the times I've ran these tests