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

MAYA-120860 Fix TestALUSDMayaPython_LayerManager random fails #1945

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

boudrey
Copy link
Contributor

@boudrey boudrey commented Jan 4, 2022

Set TEMP and TMP environment variables for each tests registered with mayaUsd_add_test.

Set TEMP and TMP environment variables for each tests registered with mayaUsd_add_test.
cmake/test.cmake Outdated
Comment on lines 359 to 366
# Set a temporary folder path for the test
# Note: replace bad chars in test_name with _.
string(REGEX REPLACE "[:<>\|]" "_" SANITIZED_TEST_NAME ${test_name})
set(TEST_TEMP_DIR "${CMAKE_BINARY_DIR}/test/Temporary/${SANITIZED_TEST_NAME}")
set_property(TEST "${test_name}" APPEND PROPERTY ENVIRONMENT
"TMP=${TEST_TEMP_DIR}"
"TEMP=${TEST_TEMP_DIR}")
file(MAKE_DIRECTORY ${TEST_TEMP_DIR})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest just adding these two lines (with your comment) to the env var above on line 340.

        "TMP=${MAYA_APP_TEMP_DIR}"
        "TEMP=${MAYA_APP_TEMP_DIR}")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will, nice catch.

@boudrey boudrey added the ready-for-merge Development process is finished, PR is ready for merge label Jan 4, 2022
@seando-adsk seando-adsk merged commit 1b38adc into dev Jan 5, 2022
@seando-adsk seando-adsk deleted the boudrey/MAYA-120860/tmp-folder branch January 5, 2022 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants