Use autoninja included in the chromium's depot_tools

Previously we have been used the global depot_tools which is the latest
at the timing of bisect task, but it may be incompatible with an old
chromium. This CL is to use the depot_tools corresponding to the
checked-out chromium code, so that it must be compatible with the
checked-out chromium.

BUG=b:453519622
TEST=Tested on the dev environment

Change-Id: I2600be50d406cb90cda979fec8d9f3095a8262e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bisect-kit/+/7082167
Tested-by: Yoshiki Iguchi <[email protected]>
Reviewed-by: Qijiang Fan <[email protected]>
Commit-Queue: Yoshiki Iguchi <[email protected]>
diff --git a/bisect_kit/cr_util.py b/bisect_kit/cr_util.py
index 03062ec..5ef5168 100644
--- a/bisect_kit/cr_util.py
+++ b/bisect_kit/cr_util.py
@@ -362,7 +362,14 @@
     logger.info('build %s', targets)
     out_dir = os.path.join('out_%s' % board, 'Release')
     with locking.lock_file(locking.LOCK_FILE_FOR_BUILD):
-        cmd = ['autoninja', '-C', out_dir] + targets
+        # Need to call .py directly, since it is calling the non-initialized
+        # (non-bootstrapped) script.
+        # See. https://chromium.googlesource.com/chromium/tools/depot_tools/+/HEAD/README.md#installing
+        cmd = [
+            './third_party/depot_tools/autoninja.py',
+            '-C',
+            out_dir,
+        ] + targets
         # Chrome build shouldn't take more than 3 hours. Set timeout to abort
         # the process in case it gets deadlocked. b/369498616
         timeout = 3 * 60 * 60