Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/utils/environments/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

exports_files(
["ecu_logging_config.json"],
visibility = ["//tests/utils/environments:__subpackages__"],
)

# Empty target for native builds
filegroup(
name = "empty_target",
Expand Down
7 changes: 7 additions & 0 deletions tests/utils/environments/ecu_logging_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ecuId": "ECU1",
"appId": "LM",
"logLevel": "kDebug",
"logLevelThresholdConsole": "kDebug",
"logMode": "kConsole"
}
15 changes: 15 additions & 0 deletions tests/utils/environments/x86_64-linux/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,25 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_load")
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_files")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

pkg_files(
name = "ecu_logging_config_files",
srcs = ["//tests/utils/environments:ecu_logging_config.json"],
attributes = pkg_attributes(mode = "0644"),
prefix = "etc",
)

pkg_tar(
name = "ecu_logging_config_layer",
srcs = [":ecu_logging_config_files"],
)

oci_image(
name = "image",
base = "@debian-test-runtime",
tars = [":ecu_logging_config_layer"],
)

oci_load(
Expand Down
3 changes: 3 additions & 0 deletions tests/utils/testing_utils/setup_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
def setup_test(request, target):
"""Sets up the test by uploading and extracting the test binaries tar"""

# silence logs coming from docker which uses urllib3
logging.getLogger("urllib3").setLevel(logging.WARNING)
Comment thread
NicolasFussberger marked this conversation as resolved.

bin_path = Path(request.config.getoption("--score-test-binary-path"))
remote_dir = Path(request.config.getoption("--score-test-remote-directory"))

Expand Down
Loading