Don't clobber the PATH environment variable when running git commit.

OS X comes with an old version of Python, so we install a newer one in
/usr/local/git/bin and add that to the PATH in the build step.  The old version
that comes with OS X doesn't understand the timezone in GIT_*_DATE environment
variables, so always creates commits in the local timezone (US/Pacific).  This
leads to commits with different hashes to what the test was expecting, causing
failures on OS X 10.6 and 10.7:

http://build.chromium.org/p/chromium.infra/builders/infra-continuous-mac-10.6-64/builds/3/steps/infra%20python%20tests/logs/stdio

BUG=
R=vadimsh@chromium.org

Review URL: https://codereview.chromium.org/1306033009 .
1 file changed
tree: 65725cce3917a1e262be591762b1522da6987664
  1. testing_support/
  2. .gitignore
  3. codereview.settings
  4. README.md
  5. setup.py
README.md

Testing Support

Utilities to support writing unittests for infra-related tools.

Auto stub

Dead simple mocking framework.

Git

A simple ascii-art-schema-based unittest library. Sets up a real on-disk git repo according to a specified ascii-art representation in a class variable.

See testing_support.git.* docstrings for more info.