-
Notifications
You must be signed in to change notification settings - Fork 202
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
MAYA-112050 - Pxr tests will use build area for temporary files. #1443
Conversation
@@ -385,6 +385,15 @@ function(pxr_register_test TEST_NAME) | |||
"--pre-path=${_testPrePath}" ${testCmd} | |||
) | |||
|
|||
# Set a temporary folder path for the test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/Autodesk/maya-usd/blob/dev/cmake/test.cmake#L320 for reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Jerry. Looks good.
For the sake of documentation, can you describe the scenario where you hit this?
Well, I was trying to fix the exact failure I have in the unit test that failed in this commit:
Which squarely means that this fix is not the solution. I will most probably close that PR without asking for a merge. I suspect the USD check that a file has been really deleted in TfDeleteFile, which calls _unlink on Windows can not work if any handle is still opened on the file. On Unix OS, unlink always work because the inode held by program handles is not the same as the directory inode that unlink will always remove successfully. Another potential fix could be done, still in USD, to make sure the temporary stage created to export the file goes out of scope before the call to TfDeleteFile. |
Result: