From 77dc8157d0efe0086829fa57949cb1c796faea68 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 16 May 2018 11:27:33 +0300 Subject: [PATCH] Use absolute path to avoid execution failure with automate-git.py --test-prefix=xvfb-run (issue #2435). --- tools/automate/automate-git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/automate/automate-git.py b/tools/automate/automate-git.py index ad1605004..236a1a55f 100644 --- a/tools/automate/automate-git.py +++ b/tools/automate/automate-git.py @@ -1548,7 +1548,7 @@ if options.runtests: build_path = os.path.join(out_src_dir, get_build_directory_name(True)) test_path = os.path.join(build_path, test_exe) if os.path.exists(test_path): - run(test_prefix + test_exe + test_args, build_path, depot_tools_dir) + run(test_prefix + test_path + test_args, build_path, depot_tools_dir) else: msg('Not running debug tests. Missing executable: %s' % test_path) @@ -1556,7 +1556,7 @@ if options.runtests: build_path = os.path.join(out_src_dir, get_build_directory_name(False)) test_path = os.path.join(build_path, test_exe) if os.path.exists(test_path): - run(test_prefix + test_exe + test_args, build_path, depot_tools_dir) + run(test_prefix + test_path + test_args, build_path, depot_tools_dir) else: msg('Not running release tests. Missing executable: %s' % test_path)