Ensure GetFixturesPath works on Fuchsia (#15978)

This commit is contained in:
George Wright 2020-01-24 15:47:29 -08:00 committed by GitHub
parent 08d1f2af9f
commit ede50d43d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,11 @@ template("test_fixtures") {
# must always be known to tests.
fixtures_location_target_name = "fixtures_location_$target_name"
fixtures_location(fixtures_location_target_name) {
assets_dir = "$target_gen_dir/assets"
if (is_fuchsia) {
assets_dir = "/pkg/data/assets"
} else {
assets_dir = "$target_gen_dir/assets"
}
}
test_deps = [ ":$fixtures_location_target_name" ]