Move GetTipOfTrunkSvnRevision to gclient.py and cleanup tests.
I'm planning on reusing GetTipOfTrunkSvnRevision outside of
cros_mark_chrome_as_stable, so I'm moving the function to gclient.py
so it can be reusable.
Besides this, I've updated the script to consistently use
cros_build_lib.RunCommand so that we don't need to switch between
mocking out this and cros_mark_chrome_as_stable.RunCommand in the
test. This keeps the test simpler and easier to understand.
TEST=Run all unit tests. Chrome trybots.
Reviewed-by: Ryan Cui <email@example.com>
Commit-Queue: David James <firstname.lastname@example.org>
Tested-by: David James <email@example.com>
3 files changed