Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown in runAllTests #22

Closed
k1o0 opened this issue Oct 17, 2019 · 1 comment
Closed

Exception thrown in runAllTests #22

k1o0 opened this issue Oct 17, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@k1o0
Copy link
Collaborator

k1o0 commented Oct 17, 2019

The following exception is thrown occasionally, after all the tests have successfully completed:

Done Alyx_test
__________

Tearing down PathFixture
Done tearing down PathFixture: Restored the path to its original state.
__________

Error in 'mustContainCharacters' line 13: MATLAB:unittest:StringInputValidation:InvalidValueMustContainCharacters: 
Invalid 'file' value. Input must contain one or more characters.

The error is mostly thrown by fileread or fopen, however the filename itself is constant so getting this error only some of the time is confusing.

For now I've added a line to print the full stack.

Also this line causes an error when the file doesn't exist:
https://github.com/cortex-lab/matlab-ci/blob/98bf56eb540631969e755b7d2ee98004f7b3604a/runAllTests.m#L56-L57

@k1o0 k1o0 added the bug Something isn't working label Oct 17, 2019
@k1o0
Copy link
Collaborator Author

k1o0 commented Oct 27, 2020

Solved: this occurs when the git checkout removes some files that are still in MATLAB's file cache. This will be resolved if we reset the paths each time (see #18)

@k1o0 k1o0 closed this as completed Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant