Skip to content

Commit 3ea331b

Browse files
Disable gn logs when using all platform tests
1 parent 8ebcf7a commit 3ea331b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

third_party/silabs/efr32_sdk.gni

+4-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ declare_args() {
130130
if (slc_generate || slc_reuse_files) {
131131
silabs_gen_folder = slc_gen_path
132132
} else {
133-
print("Using pre-generate files")
133+
if (!chip_build_all_platform_tests) {
134+
# We can't print to the console when running our tests in the CSA CI otherwise CI fails.
135+
print("Using pre-generate files")
136+
}
134137
silabs_gen_folder = sl_pre_gen_path
135138
}
136139

third_party/silabs/silabs_board.gni

+5-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ if (silabs_board == "") {
8282

8383
# Workaround to enable unit-tests when depending on files that import this gni
8484
if (silabs_board == "" && sl_build_unit_tests) {
85-
print("Building the unit test configuration since silabs_board is not set.")
86-
print("If you are building the efr32 test_driver, a board is required.")
87-
85+
if (!chip_build_all_platform_tests) {
86+
# We can't print to the console when running our tests in the CSA CI otherwise CI fails.
87+
print("Building the unit test configuration since silabs_board is not set.")
88+
print("If you are building the efr32 test_driver, a board is required.")
89+
}
8890
silabs_board = "unit-test"
8991
silabs_family = "unit-test"
9092
silabs_mcu = "unit-test"

0 commit comments

Comments
 (0)