Tests: show debugging hint when USDStageCreationTest fails
Setting the environment variable `PXR_PATH_DEBUG` non-empty will make the USD library print the directories it uses to find its JSON files. This can aid in debugging when this unit test fails. Now the failure message also tells you about this. No functional changes.
This commit is contained in:
parent
a2a29327d9
commit
617e67529c
|
@ -61,7 +61,9 @@ TEST_F(USDStageCreationTest, JSONFileLoadingTest)
|
|||
unlink(filename.c_str());
|
||||
}
|
||||
else {
|
||||
FAIL() << "unable to find suitable USD plugin to write " << filename;
|
||||
FAIL() << "unable to find suitable USD plugin to write " << filename
|
||||
<< "; re-run with the environment variable PXR_PATH_DEBUG non-empty to see which paths "
|
||||
"are considered.";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue