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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmake/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,16 @@ finally:
"${pathvar}=${MAYAUSD_VARNAME_${pathvar}}")
endforeach()

# Set a temporary folder path for the MAYA_APP_DIR in which the
# Set a temporary folder path for the TMP,TEMP and MAYA_APP_DIR in which the
# maya profile will be created.
# Note: replace bad chars in test_name with _.
string(REGEX REPLACE "[:<>\|]" "_" SANITIZED_TEST_NAME ${test_name})
set(MAYA_APP_TEMP_DIR "${CMAKE_BINARY_DIR}/test/Temporary/${SANITIZED_TEST_NAME}")
# Note: ${WORKING_DIR} can point to the source folder, so don't use it
# in any env var that will write files (such as MAYA_APP_DIR).
set_property(TEST "${test_name}" APPEND PROPERTY ENVIRONMENT
"TMP=${MAYA_APP_TEMP_DIR}"
"TEMP=${MAYA_APP_TEMP_DIR}"
"MAYA_APP_DIR=${MAYA_APP_TEMP_DIR}")
file(MAKE_DIRECTORY ${MAYA_APP_TEMP_DIR})

Expand Down