Skip to content

TEST/GTEST: Don't run sockaddr tests on bridge interfaces - #7873

Merged
yosefe merged 1 commit into
openucx:masterfrom
yosefe:topic/test-gtest-dont-run-sockaddr-tests-on
Jan 27, 2022
Merged

TEST/GTEST: Don't run sockaddr tests on bridge interfaces#7873
yosefe merged 1 commit into
openucx:masterfrom
yosefe:topic/test-gtest-dont-run-sockaddr-tests-on

Conversation

@yosefe

@yosefe yosefe commented Jan 26, 2022

Copy link
Copy Markdown
Member

Why

Fix test failures when docker instances run on the same machine and create temporary bridge interfaces.

How

Prevent sockaddr gtests from running on bridge interfaces

Comment thread test/gtest/ucp/test_ucp_sockaddr.cc Outdated
ucs::is_rdmacm_netdev(
ifa->ifa_name));
saddrs.back().set_port(0); /* listen on any port then update */
if (!ucs::is_interface_usable(ifa) || is_skip_interface(ifa)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be check is_skip_interface first to not touch sysfs in case if iface skipped?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@yosefe
yosefe force-pushed the topic/test-gtest-dont-run-sockaddr-tests-on branch from 3894ee8 to ce6f0d7 Compare January 26, 2022 17:47
@yosefe

yosefe commented Jan 27, 2022

Copy link
Copy Markdown
Member Author

@hoopoepg is it ok now?

@yosefe
yosefe merged commit 1fd7055 into openucx:master Jan 27, 2022
@yosefe
yosefe deleted the topic/test-gtest-dont-run-sockaddr-tests-on branch January 27, 2022 14:17
@yosefe yosefe mentioned this pull request Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants