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

HYDRA-1207 - fix and re-enable case testSceneBrowser #182

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,16 @@ void AdskHydraSceneBrowserTestFixture::CompareValueContent(const pxr::VtValue& v
std::string actualValue = valueText.toStdString();

std::ostringstream valueStream;
valueStream << value;
if (value.IsHolding<pxr::SdfPathVector>()) {
lilike-adsk marked this conversation as resolved.
Show resolved Hide resolved
// Special case for SdfPathVector.
pxr::SdfPathVector paths = value.Get<pxr::SdfPathVector>();
for (pxr::SdfPath const& path : paths) {
valueStream << path << "\n";
}
}
else {
valueStream << value;
}
std::string expectedValue = valueStream.str();

if (!MatchesFallbackTextOutput(expectedValue)) {
Expand Down
3 changes: 1 addition & 2 deletions test/lib/mayaUsd/render/mayaToHydra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ endif(MayaUsd_FOUND)

# Code coverage is not computed for the Hydra scene browser.
if (NOT CODE_COVERAGE)
# To be reenabled after investigation: HYDRA-1207
#list(APPEND INTERACTIVE_TEST_SCRIPT_FILES testSceneBrowser.py)
list(APPEND INTERACTIVE_TEST_SCRIPT_FILES testSceneBrowser.py)
endif()

# Interactive Unit test scripts for mesh adapter (launched with maya.exe instead of mayapy.exe)
Expand Down
Loading