-
Notifications
You must be signed in to change notification settings - Fork 201
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-106529 - MayaUSD: Cleanup old UFE conditionals #746
Conversation
* The latest Maya PR118 has UFE 0.2.19, so removed any special UFE code before that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current Maya preview release PR118 has UFE 0.2.19, so anything before that was removed. We do not need to support anything but the current Maya preview release.
test/lib/ufe/CMakeLists.txt
Outdated
testAttribute.py | ||
testAttributes.py | ||
testComboCmd.py | ||
testContextOps.py | ||
testDeleteCmd_v2.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I split out the UFE v2 delete test into a separate file to include here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can see this block of tests are all V2 only. So most of the skipif tags have been removed. I had to keep a couple since they are v0.20.0.
test/lib/ufe/testDeleteCmd_v2.py
Outdated
UFE Feature : SceneItemOps | ||
Maya Feature : delete | ||
Action : Remove object from scene. | ||
Applied On Command Arguments: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entire file is a copy of the original with just this one test. I changed this comment to be from command args (instead of selection).
* Put "test" back in file "testDeleteCmd.py" and removed new "testDeleteCmd_v2.py". Created new ufeUtils.ufeFeatureSetVersion() for use by tests when a v2 (or greater) check is needed. * Removed old MayaPR checks.
@@ -327,7 +327,6 @@ def testComboMaya(self): | |||
|
|||
self.runTestCombo(expectedTRS) | |||
|
|||
@unittest.skipUnless(mayaUtils.previewReleaseVersion() >= 115, 'Requires Maya fixes only available in Maya Preview Release 115 or later.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current Maya PR is PR118, so we don't need these older checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. Thanks for doing this!
|
||
If you need to test for a specific UFE preview release version then check | ||
the cmake variable UFE_PREVIEW_VERSION_NUM. This is also set as an env | ||
for the python tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy-paste damage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, my mistake, got confused with
MAYA_PREVIEW_RELEASE_VERSION_OVERRIDE is defined, return its value instead. |
and clearly they're not the same.
|
||
If you need to test for a specific UFE preview release version then check | ||
the cmake variable UFE_PREVIEW_VERSION_NUM. This is also set as an env | ||
for the python tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, my mistake, got confused with
MAYA_PREVIEW_RELEASE_VERSION_OVERRIDE is defined, return its value instead. |
and clearly they're not the same.
* Put back accidental deletion of UFE v1 specific code.
* Added conditional for test that requires UFE v2.
@kxl-adsk My latest maya-usd preflight fixed all the real preflight problem, but there was a glitch with master Windows python3 build. My previous preflight passed on that platform. |
MAYA-106529 - MayaUSD: Cleanup old UFE conditionals