Skip to content

Commit

Permalink
set $MAYA_APP_DIR before running tests, to use a default maya profile
Browse files Browse the repository at this point in the history
  • Loading branch information
pmolodo committed May 5, 2017
1 parent 6dcfc50 commit 7187804
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/macros/testWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ def _runCommand(raw_command, stdout_redir, stderr_redir, env,
if args.verbose:
print "chdir: {0}".format(testDir)

# in case it's a maya test, set up a maya profile directory ($MAYA_APP_DIR)
# that's empty, so we can ensure we test with a default profile - had some
# crashes with 2017 when using an existing user profile (due to some
# problems with color management settings)
# Also, maya creates the $MAYA_APP_DIR on demand, so we don't need to bother
# making the directory ourselves
os.environ['MAYA_APP_DIR'] = os.path.join(testDir, 'maya_profile')

# Copy the contents of the testenv directory into our test run directory so
# the test has it's own copy that it can reference and possibly modify.
if args.testenv_dir and os.path.isdir(args.testenv_dir):
Expand Down

0 comments on commit 7187804

Please sign in to comment.