You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/testing_support
Raphael Kubo da Costa b45f6428f8 fake_repos: Create a new socket for every connection attempt while waiting for a port
connect(2) says stream sockets may only succeed to connect once. This means
if the call to sock.connect() fails it will continue failing for the
entirety of the wait loop, and we will fail to wait for a port to bind even
when it eventually becomes available.

Make sure we create a new socket every time we are about to try to connect
to it.

Change-Id: I16d7dbea3590c5bf7f7240bdefcc5ec0bcd1edb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1528291
Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
6 years ago
..
__init__.py Create a new testing_support module to move utility modules there 14 years ago
auto_stub.py Reduce auto_stub.py by removing python 2.6 support code. 11 years ago
cipd gclient: Add a test to make sure we're syncing CIPD dependencies. 7 years ago
cipd.bat gclient: Add a test to make sure we're syncing CIPD dependencies. 7 years ago
coverage_utils.py Disable coverage in depot_tools tests. 9 years ago
fake_cipd.py Reland "gclient: delete unversioned directory before adding cipd dep for the same path" 7 years ago
fake_repos.py fake_repos: Create a new socket for every connection attempt while waiting for a port 6 years ago
filesystem_mock.py owners.py: Use os.path.split to handle file separators correctly 7 years ago
gerrit-init.sh testing_support: fix Gerrit releases URL. 9 years ago
gerrit_test_case.py Reland "Refactor ReadHttpResponse to be error-friendlier" 8 years ago
git_test_utils.py git_test_utils: Copy os.environ in get_git_commit_env() 6 years ago
patches_data.py Fix applying git diff with new file mode 644 on a svn checkout. 13 years ago
super_mox.py depot_tools: Replace pylint error numbers with symbolic names. 8 years ago
trial_dir.py Remove gclient_utils.RemoveDirectory(). 12 years ago