Skip to content

Commit

Permalink
GTEST: Fix tcp_device name detection in pci_bw test
Browse files Browse the repository at this point in the history
  • Loading branch information
brminich committed Aug 15, 2024
1 parent 600b468 commit b220806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/gtest/ucp/test_ucp_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,8 @@ class test_pci_bw : public ucp_test {
}

for (const auto &file : sysfs_files) {
if (file.find("slave_") != std::string::npos) {
if ((file.find("slave_") != std::string::npos) ||
(file.find("lower_") != std::string::npos)) {
dev_path += "/" + file;
break;
}
Expand Down

0 comments on commit b220806

Please sign in to comment.