Add a simple script to run a shard inside a google-test executable.
Add a simple script to run a shard inside a google-test executable.

This works around the lack of corresponding --gtest_shards and --gtest_index
flags in google-test framework.

For example, I can then run something like:
./shard.py -i 0 -s 2000 ./isolate.py run -r ../../out/Release/browser_tests.results

TBR=cmp@chromium.org
NOTRY=true
BUG=
TEST=

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

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145307 0039d316-1c4b-4281-b951-d872f2087c98

Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,anirudhSK/chromium,littlstar/chromium.src,keishi/chromium,ondra-novak/chromium.src,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,keishi/chromium,Jonekee/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,jaruba/chromium.src,anirudhSK/chromium,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,jaruba/chromium.src,zcbenz/cefode-chromium,Fireblend/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,dednal/chromium.src,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,hujiajie/pa-chromium,dushu1203/chromium.src,dednal/chromium.src,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,patrickm/chromium.src,ChromiumWebApps/chromium,zcbenz/cefode-chromium,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacewalk,M4sse/chromium.src,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,hujiajie/pa-chromium,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,M4sse/chromium.src,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,patrickm/chromium.src,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,Jonekee/chromium.src,ondra-novak/chromium.src,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,jaruba/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,ltilve/chromium,zcbenz/cefode-chromium,markYoungH/chromium.src,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,keishi/chromium,ChromiumWebApps/chromium,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,Just-D/chromium-1,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,keishi/chromium,nacl-webkit/chrome_deps,keishi/chromium,Jonekee/chromium.src,dushu1203/chromium.src,ltilve/chromium,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Just-D/chromium-1,mogoweb/chromium-crosswalk,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,ltilve/chromium,ondra-novak/chromium.src,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,hgl888/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,ltilve/chromium,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,anirudhSK/chromium,dednal/chromium.src,Chilledheart/chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,markYoungH/chromium.src,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,dednal/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,patrickm/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,chuan9/chromium-crosswalk,Chilledheart/chromium,keishi/chromium,ChromiumWebApps/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,keishi/chromium,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,markYoungH/chromium.src,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,ondra-novak/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,ltilve/chromium,ChromiumWebApps/chromium,hujiajie/pa-chromium,nacl-webkit/chrome_deps,anirudhSK/chromium,hujiajie/pa-chromium,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,ondra-novak/chromium.src,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,dednal/chromium.src,patrickm/chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,jaruba/chromium.src,littlstar/chromium.src,mogoweb/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,Chilledheart/chromium,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,keishi/chromium,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,littlstar/chromium.src,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,Chilledheart/chromium,ltilve/chromium,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,littlstar/chromium.src,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,zcbenz/cefode-chromium,Just-D/chromium-1,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,dednal/chromium.src,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,ltilve/chromium,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,Chilledheart/chromium,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,markYoungH/chromium.src,ondra-novak/chromium.src,anirudhSK/chromium,anirudhSK/chromium,dednal/chromium.src,anirudhSK/chromium,Chilledheart/chromium,keishi/chromium,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,ltilve/chromium,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,keishi/chromium,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,markYoungH/chromium.src,timopulkkinen/BubbleFish