Remove hard dependency on bundled python_26 in tests

(solution suggested in https://codereview.chromium.org/16117004/ )

The hardcoded dependency on third_party/python_26 in some unit tests
makes it necessary to bundle that python with the test binaries. On other
platforms the system python is used and there is no reason Windows can't
do the same if one is available.

This saves us band-width (25 MB per test machine) when distributing tests.

The change is implemented as a removal of the hard coded path in execution and
instead it's inserted at the end of the PATH environment variable. That way it
will still be used if there is no other python available but otherwise a
system python will be used.

There is a small risk that the system python is unsuitable but that is a risk we
already take on non-Windows platforms.

Another solution was discussed in https://codereview.chromium.org/16117004/ before
this solution was suggested.

Review URL: https://chromiumcodereview.appspot.com/21537002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224096 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed