Skip to content

Commit

Permalink
Merge pull request #10064 from brminich/gtest/fix_pci_test
Browse files Browse the repository at this point in the history
GTEST: Fix tcp_device name detection in pci_bw test
  • Loading branch information
brminich committed Aug 17, 2024
2 parents 600b468 + b220806 commit 2c067f5
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 2c067f5

Please sign in to comment.