TESTENV testPcpMuseum_ImpliedAndAncestralInherits
COMMAND "${CMAKE_INSTALL_PREFIX}/tests/testPcpCompositionResults --dumpPath /World/CharGroup/Sim/includes/Hand/Geom --dumpMaps ImpliedAndAncestralInherits/root.sdf"
STDOUT_REDIRECT compositionResults_ImpliedAndAncestralInherits_graph.txt
- CLEAN_OUTPUT "[^@]*/ImpliedAndAncestralInherits/"
DIFF_COMPARE compositionResults_ImpliedAndAncestralInherits_graph.txt
)
Work.SetMaximumConcurrencyLimit()
+# Error messages and dump strings can contain absolute paths to layers which
+# change depending on where the this test command is run. This cleans out the
+# absolute test run path from these strings so that baseline compares will work
+# regardless of where this is run.
+def CleanTestRunPaths(msg):
+ cwd = os.getcwd().replace('\\', '/') + '/'
+ return re.compile(re.escape(cwd), re.IGNORECASE).sub('', msg)
+
def PrintErrorMessage(errorFile, msg):
if errorFile:
- print(msg, file=errorFile)
+ print(CleanTestRunPaths(msg), file=errorFile)
else:
- print(msg, file=sys.stderr)
+ print(CleanTestRunPaths(msg), file=sys.stderr)
def PrintErrors(errorFile, errors):
global hadError
# Optionally dump the index for this path.
if primPath == dumpPath:
- print(primIndex.DumpToString(args.dumpMaps))
+ print(CleanTestRunPaths(primIndex.DumpToString(args.dumpMaps)))
propStackMap = {}
targetsMap = {}
------------------------------------------------------------------------
Errors while composing </PermissionsAcrossInherits/Instance>
-The relationship target <ErrorConnectionPermissionDenied/ref.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
-The relationship target <ErrorConnectionPermissionDenied/ref.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
+The relationship target </ReferenceWithLocalClass/Instance/PrivatePrimFromClass> from </ReferenceWithLocalClass/Instance.relInInstance> in layer @ErrorConnectionPermissionDenied/ref.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
+The relationship target </ReferenceWithLocalClass/Instance.privateAttrFromClass> from </ReferenceWithLocalClass/Instance.relInInstance> in layer @ErrorConnectionPermissionDenied/ref.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
The relationship target </PermissionsAcrossInherits/Instance/PrivatePrimFromClass> from </PermissionsAcrossInherits/Instance.relInRootInstance> in layer @ErrorConnectionPermissionDenied/root.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
The relationship target </PermissionsAcrossInherits/Instance.privateAttrFromClass> from </PermissionsAcrossInherits/Instance.relInRootInstance> in layer @ErrorConnectionPermissionDenied/root.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
------------------------------------------------------------------------
Errors while composing </CulledPermissions_3>
-The relationship target <ErrorConnectionPermissionDenied/culled_stable.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
+The relationship target </CulledModel/sim/CollisionRig/FiztCollBody> from </CulledModel.colliders> in layer @ErrorConnectionPermissionDenied/culled_stable.sdf@ targets an object that is private on the far side of a reference or inherit. This target will be ignored.
------------------------------------------------------------------------
Errors while computing Layer Stack
-The following sublayers for layer @ErrorOwner/root.sdf@ have the same owner 'foo' @ErrorOwner/stronger.sdf@, @ErrorOwner/owned.sdf@
+The following sublayers for layer @ErrorOwner/root.sdf@ have the same owner 'foo': @ErrorOwner/stronger.sdf@, @ErrorOwner/owned.sdf@
Type: reference
DependencyType: ancestral, non-virtual
Source path: </CharGroup/Sim/includes/Hand/Geom>
- Source layer stack: @Group.sdf@
+ Source layer stack: @ImpliedAndAncestralInherits/Group.sdf@
Target path: </World/CharGroup/Sim/includes/Hand/Geom>
Target layer stack: @ImpliedAndAncestralInherits/root.sdf@
Map to parent:
Type: reference
DependencyType: ancestral, non-virtual
Source path: </CHARGROUP/Sim/includes/Hand/Geom>
- Source layer stack: @CharGroupRig.sdf@
+ Source layer stack: @ImpliedAndAncestralInherits/CharGroupRig.sdf@
Target path: </CharGroup/Sim/includes/Hand/Geom>
- Target layer stack: @Group.sdf@
+ Target layer stack: @ImpliedAndAncestralInherits/Group.sdf@
Map to parent:
/CHARGROUP -> /CharGroup
Map to root:
Type: inherit
DependencyType: ancestral, non-virtual
Source path: </_class_SimHand/Geom>
- Source layer stack: @CharGroupRig.sdf@
+ Source layer stack: @ImpliedAndAncestralInherits/CharGroupRig.sdf@
Target path: </CHARGROUP/Sim/includes/Hand/Geom>
- Target layer stack: @CharGroupRig.sdf@
+ Target layer stack: @ImpliedAndAncestralInherits/CharGroupRig.sdf@
Map to parent:
/ -> /
/_class_SimHand -> /CHARGROUP/Sim/includes/Hand
Has specs: TRUE
Has symmetry: FALSE
Prim stack:
- </_class_SimHand/Geom> CharGroupRig.sdf - @CharGroupRig.sdf@
+ </_class_SimHand/Geom> CharGroupRig.sdf - @ImpliedAndAncestralInherits/CharGroupRig.sdf@