Skip to content

Commit d5b7752

Browse files
committed
Use valid name for ctest resources
1 parent e8349bc commit d5b7752

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function(arduino_cli_toolchain_add_test NAME)
4040
set_tests_properties(
4141
"${_test_name}/configure" PROPERTIES
4242
FIXTURES_SETUP "${_test_name}/configure"
43-
RESOURCE_GROUPS "cpu-cores:1"
43+
RESOURCE_GROUPS "cpu_cores:1"
4444
DISABLED "${_test_disabled}"
4545
LABELS "${_board_name}")
4646

@@ -57,7 +57,7 @@ function(arduino_cli_toolchain_add_test NAME)
5757
"${_test_name}/reconfigure" PROPERTIES
5858
FIXTURES_REQUIRED "${_test_name}/configure"
5959
FIXTURES_SETUP "${_test_name}/reconfigure"
60-
RESOURCE_GROUPS "cpu-cores:1"
60+
RESOURCE_GROUPS "cpu_cores:1"
6161
DISABLED "${_test_disabled}"
6262
LABELS "${_board_name}")
6363

@@ -69,7 +69,7 @@ function(arduino_cli_toolchain_add_test NAME)
6969
set_tests_properties(
7070
"${_test_name}/build" PROPERTIES
7171
FIXTURES_REQUIRED "${_test_name}/reconfigure"
72-
RESOURCE_GROUPS "cpu-cores:${_logical_cores}"
72+
RESOURCE_GROUPS "cpu_cores:${_logical_cores}"
7373
DISABLED "${_test_disabled}"
7474
LABELS "${_board_name}")
7575
endforeach()

tests/CTestResources.json.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": {"major": 1, "minor": 0},
33
"local": [{
4-
"cpu-cores": [{"id": "0", "slots": ${_logical_cores} }]
4+
"cpu_cores": [{"id": "0", "slots": ${_logical_cores} }]
55
}]
66
}

0 commit comments

Comments
 (0)