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

Tests get stuck with USD_EDITOR = vim #505

Closed
AlexSchwank opened this issue May 23, 2018 · 3 comments
Closed

Tests get stuck with USD_EDITOR = vim #505

AlexSchwank opened this issue May 23, 2018 · 3 comments

Comments

@AlexSchwank
Copy link
Collaborator

AlexSchwank commented May 23, 2018

Description of Issue

When the USD_EDITOR environment variable is set to vi/vim, it's not possible to run all tests.
For example, testUsdEditFilePermissions2 is testing if a write protected file can be opened with usdedit in a read only way. That works but doesn't return and so the test is stuck.
These kind of tests could use a modified test environment where USD_EDITOR is set to emacs or another suitable editor.

Steps to Reproduce

  1. setenv USD_EDITOR vim (or export USD_EDITOR=vim)
  2. ctest -R testUsdEditFilePermissions2

System Information (OS, Hardware)

centos7

Package Versions

0.8.5

Build Flags

-DPXR_BUILD_TESTS=TRUE

@jtran56
Copy link

jtran56 commented May 24, 2018

Filed as internal issue #161150.

@c64kernal
Copy link
Contributor

Hey @AlexSchwank @spiffmon and I looked at this briefly and we think the issue is that in the CMakeLists.txt file we're setting EDITOR to head but we think we should be setting USD_EDITOR instead. Thanks for the report!

@superfunc
Copy link
Contributor

superfunc commented May 26, 2018

@c64kernal is right, usdedit looks at USD_EDITOR first, so we should be setting that in tests.
https:/PixarAnimationStudios/USD/blob/master/pxr/usd/bin/usdedit/usdedit.py#L58 . Fixed in #511

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants