-
Notifications
You must be signed in to change notification settings - Fork 393
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
#8376 - EnergyPlus with option --expandobjects set fails when working directory is not on the same device as the output directory (on Unix) #8410
Conversation
@jmarrec if we push to file system library support, do you want this to drop in as a temporary fix first? Or just close this PR? |
@Myoldmopar I'd rather it gets in in the meantime, unless you see a reason not to? I fixed the conflict in the test. |
@jmarrec this does look good. Most of the changes are just adding the namespace obviously, with the one change in the rename section. I'm glad you are able to reproduce this error and the fix works. I would like to merge this in, but a few of the file system unit tests are failing with the last commit. If you can address that then I think this can drop in as an interim step toward the larger filesystem refactor. |
More tests test adjustment
…xpects makeNativePath beforehand in particular.
5f15aec
to
5d2a5c3
Compare
should be good now |
@jmarrec it looks like this still has a couple unit test issues. |
@Myoldmopar CI looks happy now. |
All good, great!! |
Pull request overview
This is a minimal fix for the specific
moveFile
issue that #8376 touches upon.(I have spent a lot of time implementing a solution that makes use of C++17
std::filesystem
, but I'm going to put up a NFP for this to see if I can get buy in first)I added a bunch of new tests for FileSystem.unit.cc, including some that I commented out or adjusted because they currently fail (I think they shouldn't).
The specific issue for #8376 is not tested in a unit test... As it requires having an mount point, like a secondary hard drive or whatnot and we cannot ensure that the host running the test does have that. I have tested locally that this fixes it though.
I have a few other drives other than the one my OS (Ubuntu 18.04) is on, including one named 'DataExt4'. Before the fix, I can reproduce the issue as per below. After fix simulation works fine.
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.