Skip to content

Commit

Permalink
[code coverage] import jinja2 from third_party
Browse files Browse the repository at this point in the history
An user reported that running coverage_test.py fails due to missing
jinja2, this CL fixes the problem by importing it from third_party/.

Bug: 941573
Change-Id: I1efdd45424668fcd46b091eccde484fdf81ecaa8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1521795
Reviewed-by: Max Moroz <mmoroz@chromium.org>
Commit-Queue: Max Moroz <mmoroz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#640853}
  • Loading branch information
Yuke Liao authored and Commit Bot committed Mar 14, 2019
1 parent 2d7469d commit 84017e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/code_coverage/coverage_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@
import re
import shutil
import subprocess
import sys
import unittest

# Appends third_party/ so that coverage_utils can import jinja2 from
# third_party/, note that this is not done inside coverage_utils because
# coverage_utils is also used outside of Chromium source tree.
sys.path.append(
os.path.join(
os.path.dirname(__file__), os.path.pardir, os.path.pardir,
'third_party'))
import coverage_utils


Expand Down

0 comments on commit 84017e9

Please sign in to comment.