Use absolute path to avoid execution failure with automate-git.py --test-prefix=xvfb-run (issue #2435).

This commit is contained in:
Marshall Greenblatt 2018-05-16 11:27:33 +03:00
parent 8426da0de6
commit 77dc8157d0
1 changed files with 2 additions and 2 deletions

View File

@ -1548,7 +1548,7 @@ if options.runtests:
build_path = os.path.join(out_src_dir, get_build_directory_name(True)) build_path = os.path.join(out_src_dir, get_build_directory_name(True))
test_path = os.path.join(build_path, test_exe) test_path = os.path.join(build_path, test_exe)
if os.path.exists(test_path): 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: else:
msg('Not running debug tests. Missing executable: %s' % test_path) 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)) build_path = os.path.join(out_src_dir, get_build_directory_name(False))
test_path = os.path.join(build_path, test_exe) test_path = os.path.join(build_path, test_exe)
if os.path.exists(test_path): 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: else:
msg('Not running release tests. Missing executable: %s' % test_path) msg('Not running release tests. Missing executable: %s' % test_path)