Skip to content

Commit 733e475

Browse files
committed
Add device name to debug message of skipped devices
1 parent 855af83 commit 733e475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/dry-run/check-xml/src/check-xml.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ bool checkWrappersRemappers(const std::string& robot_dir, std::vector<std::strin
177177
if(ele.find("wrappers/motorControl") != std::string::npos){
178178
if(ele.find("wrapper.xml") != std::string::npos) {
179179
if(!loadXmlFile(robot_dir, ele, doc_wrapper)) return false;
180+
pugi::xpath_node action_startup = doc_wrapper.select_node("//action[@phase='startup']/param[@name='device']/text()");
181+
device = trim(action_startup.node().value());
180182
if (std::find(vectorUnremapped.begin(), vectorUnremapped.end(), ele) != vectorUnremapped.end())
181183
{
182-
std::cout << part << " - SKIPPED SINCE UNREMAPPED!" << std::endl;
184+
std::cout << part << " - SKIPPED DEVICE " << device << " SINCE UNREMAPPED!" << std::endl;
183185
found = true;
184186
continue;
185187
}
186-
pugi::xpath_node action_startup = doc_wrapper.select_node("//action[@phase='startup']/param[@name='device']/text()");
187-
device = trim(action_startup.node().value());
188188
if(device == target) std::cout << part <<" - WRAPPER CHECK PASSED!" << std::endl;
189189
else {
190190
std::cerr << part << " - WRAPPER CHECK FAILED!" << std::endl;

0 commit comments

Comments
 (0)