Commit 69bed021 authored by Henrique Nakashima's avatar Henrique Nakashima Committed by Commit Bot

[Lorenz] Change working directory before running gn

This should fix the failure in the builder and allow the script to be
run from any directory.

Bug: 1111056
Change-Id: Ibecfbe763a18bf4fcc5f227d23ce42edee3a2ebf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2369011Reviewed-by: default avatarMohamed Heikal <mheikal@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801009}
parent 9978b8f7
...@@ -9,6 +9,7 @@ import functools ...@@ -9,6 +9,7 @@ import functools
import math import math
import multiprocessing import multiprocessing
import pathlib import pathlib
import os
import subprocess import subprocess
import sys import sys
...@@ -189,6 +190,9 @@ def main(): ...@@ -189,6 +190,9 @@ def main():
help='Path to the gn executable.') help='Path to the gn executable.')
arguments = arg_parser.parse_args() arguments = arg_parser.parse_args()
# gn must be run from inside the git checkout.
os.chdir(SRC_PATH)
print('Getting list of dependency jars...') print('Getting list of dependency jars...')
gn_desc_output = _run_gn_desc_list_dependencies(arguments.build_output_dir, gn_desc_output = _run_gn_desc_list_dependencies(arguments.build_output_dir,
arguments.target, arguments.target,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment