Commit 2e4953cf authored by Yuke Liao's avatar Yuke Liao Committed by Commit Bot

Add xvfb.py as a data deps

Bug: 816629, 1104318
Change-Id: I1280691aa11ba42b39af2fcc1534173eada2ce69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315422
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: default avatarDirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#791661}
parent 952f580d
...@@ -386,10 +386,13 @@ template("test") { ...@@ -386,10 +386,13 @@ template("test") {
testonly = true testonly = true
wrapper_script = "$root_build_dir/bin/run_" + _executable wrapper_script = "$root_build_dir/bin/run_" + _executable
data = []
if (_use_xvfb) { if (_use_xvfb) {
executable = "//testing/xvfb.py" executable = "//testing/xvfb.py"
data += [ "//testing/xvfb.py" ]
} else { } else {
executable = "//testing/test_env.py" executable = "//testing/test_env.py"
data += [ "//testing/test_env.py" ]
} }
executable_args = [ executable_args = [
...@@ -416,9 +419,8 @@ template("test") { ...@@ -416,9 +419,8 @@ template("test") {
executable_args += [ "--cfi-diag=true" ] executable_args += [ "--cfi-diag=true" ]
} }
data = [ data += [
"//build/lacros/test_runner.py", "//build/lacros/test_runner.py",
"//testing/test_env.py",
"//.vpython", "//.vpython",
] ]
if (defined(invoker.use_ash_chrome) && invoker.use_ash_chrome) { if (defined(invoker.use_ash_chrome) && invoker.use_ash_chrome) {
...@@ -460,10 +462,13 @@ template("test") { ...@@ -460,10 +462,13 @@ template("test") {
testonly = true testonly = true
wrapper_script = "$root_build_dir/bin/run_" + _executable wrapper_script = "$root_build_dir/bin/run_" + _executable
data = []
if (_use_xvfb) { if (_use_xvfb) {
executable = "//testing/xvfb.py" executable = "//testing/xvfb.py"
data += [ "//testing/xvfb.py" ]
} else { } else {
executable = "//testing/test_env.py" executable = "//testing/test_env.py"
data += [ "//testing/test_env.py" ]
} }
executable_args = [ executable_args = [
...@@ -483,10 +488,7 @@ template("test") { ...@@ -483,10 +488,7 @@ template("test") {
executable_args += [ "--cfi-diag=true" ] executable_args += [ "--cfi-diag=true" ]
} }
data = [ data += [ "//.vpython" ]
"//testing/test_env.py",
"//.vpython",
]
} }
} }
......
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