[Bf-blender-cvs] [617e67529c5] blender-v2.90-release: Tests: show debugging hint when USDStageCreationTest fails

Sybren A. Stüvel noreply at git.blender.org
Tue Jul 28 11:07:51 CEST 2020


Commit: 617e67529c59351a2344f9bac47c79268a81e1d0
Author: Sybren A. Stüvel
Date:   Tue Jul 28 11:02:05 2020 +0200
Branches: blender-v2.90-release
https://developer.blender.org/rB617e67529c59351a2344f9bac47c79268a81e1d0

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.

===================================================================

M	source/blender/io/usd/tests/usd_stage_creation_test.cc

===================================================================

diff --git a/source/blender/io/usd/tests/usd_stage_creation_test.cc b/source/blender/io/usd/tests/usd_stage_creation_test.cc
index 96a98a78497..e6bd0bab6ce 100644
--- a/source/blender/io/usd/tests/usd_stage_creation_test.cc
+++ b/source/blender/io/usd/tests/usd_stage_creation_test.cc
@@ -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.";
   }
 }



More information about the Bf-blender-cvs mailing list