@@ -82,25 +82,11 @@ const uint8_t response_kernel_release[] = STRINGIFY(BUILD_VERSION);
82
82
const uint8_t response_kernel_version [] = KERNEL_VERSION_STRING ;
83
83
const uint8_t response_machine [] = CONFIG_ARCH ;
84
84
const uint8_t response_processor [] = PROCESSOR_NAME ;
85
- const uint8_t response_board_revision [] = CONFIG_BOARD "@" CONFIG_BOARD_REVISION ;
86
- const uint8_t response_board [] = CONFIG_BOARD ;
85
+ const uint8_t response_board_target [] = CONFIG_BOARD_TARGET ;
87
86
const uint8_t response_os [] = "Zephyr" ;
88
87
const uint8_t response_custom_cmd [] = "Magic Output for Test" ;
89
88
const uint8_t response_os_custom [] = CONFIG_CUSTOM_OS_NAME_VALUE ;
90
89
91
- const uint8_t response_all_board_revision [] = "Zephyr "
92
- #if defined(CONFIG_BT )
93
- CONFIG_BT_DEVICE_NAME
94
- #elif defined(CONFIG_NET_HOSTNAME_ENABLE )
95
- CONFIG_NET_HOSTNAME
96
- #else
97
- "unknown"
98
- #endif
99
- " " STRINGIFY (BUILD_VERSION ) " "
100
- KERNEL_VERSION_STRING " " CONFIG_ARCH " "
101
- PROCESSOR_NAME " " CONFIG_BOARD "@"
102
- CONFIG_BOARD_REVISION " Zephyr" ;
103
-
104
90
const uint8_t response_all [] = "Zephyr "
105
91
#if defined(CONFIG_BT )
106
92
CONFIG_BT_DEVICE_NAME
@@ -110,7 +96,7 @@ const uint8_t response_all[] = "Zephyr "
110
96
"unknown"
111
97
#endif
112
98
" " STRINGIFY (BUILD_VERSION ) " " KERNEL_VERSION_STRING " "
113
- CONFIG_ARCH " " PROCESSOR_NAME " " CONFIG_BOARD " Zephyr" ;
99
+ CONFIG_ARCH " " PROCESSOR_NAME " " CONFIG_BOARD_TARGET " Zephyr" ;
114
100
115
101
const uint8_t query_kernel_name [] = "s" ;
116
102
const uint8_t query_node_name [] = "n" ;
@@ -713,23 +699,12 @@ ZTEST(os_mgmt_info, test_info_8_platform)
713
699
zassert_true (ok , "Expected decode to be successful\n" );
714
700
zassert_equal (decoded , 1 , "Expected to receive 1 decoded zcbor element\n" );
715
701
716
- if (sizeof (CONFIG_BOARD_REVISION ) > 1 ) {
717
- /* Check with board revision */
718
- zassert_equal ((sizeof (response_board_revision ) - 1 ), output .len ,
719
- "Expected to receive %d bytes but got %d\n" ,
720
- (sizeof (response_board_revision ) - 1 ), output .len );
721
-
722
- zassert_mem_equal (response_board_revision , output .value , output .len ,
723
- "Expected received data mismatch" );
724
- } else {
725
- /* Check without board revision */
726
- zassert_equal ((sizeof (response_board ) - 1 ), output .len ,
727
- "Expected to receive %d bytes but got %d\n" ,
728
- (sizeof (response_board ) - 1 ), output .len );
729
-
730
- zassert_mem_equal (response_board , output .value , output .len ,
731
- "Expected received data mismatch" );
732
- }
702
+ zassert_equal ((sizeof (response_board_target ) - 1 ), output .len ,
703
+ "Expected to receive %d bytes but got %d\n" ,
704
+ (sizeof (response_board_target ) - 1 ), output .len );
705
+
706
+ zassert_mem_equal (response_board_target , output .value , output .len ,
707
+ "Expected received data mismatch" );
733
708
}
734
709
735
710
ZTEST (os_mgmt_info , test_info_9_os )
@@ -846,23 +821,12 @@ ZTEST(os_mgmt_info, test_info_10_all)
846
821
zassert_true (ok , "Expected decode to be successful\n" );
847
822
zassert_equal (decoded , 1 , "Expected to receive 1 decoded zcbor element\n" );
848
823
849
- if (sizeof (CONFIG_BOARD_REVISION ) > 1 ) {
850
- /* Check with board revision */
851
- zassert_equal ((sizeof (response_all_board_revision ) - 1 ), output .len ,
852
- "Expected to receive %d bytes but got %d\n" ,
853
- (sizeof (response_all_board_revision ) - 1 ), output .len );
854
-
855
- zassert_mem_equal (response_all_board_revision , output .value , output .len ,
856
- "Expected received data mismatch" );
857
- } else {
858
- /* Check without board revision */
859
- zassert_equal ((sizeof (response_all ) - 1 ), output .len ,
860
- "Expected to receive %d bytes but got %d\n" ,
861
- (sizeof (response_all ) - 1 ), output .len );
862
-
863
- zassert_mem_equal (response_all , output .value , output .len ,
864
- "Expected received data mismatch" );
865
- }
824
+ zassert_equal ((sizeof (response_all ) - 1 ), output .len ,
825
+ "Expected to receive %d bytes but got %d\n" ,
826
+ (sizeof (response_all ) - 1 ), output .len );
827
+
828
+ zassert_mem_equal (response_all , output .value , output .len ,
829
+ "Expected received data mismatch" );
866
830
}
867
831
868
832
ZTEST (os_mgmt_info , test_info_11_multi_1 )
0 commit comments