diff options
| author | Mike Frysinger <vapier@google.com> | 2026-01-06 00:38:29 -0500 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2026-01-06 10:17:53 -0800 |
| commit | 45dcd738b7a5ad7fc8f4046a8a9439317b63f5a5 (patch) | |
| tree | f903183a020eaa36c26dfb0e019f746ccd1fc576 /tests | |
| parent | 1dad86dc0063a6860b92e0ff0c66c4010a47dc35 (diff) | |
| download | git-repo-45dcd738b7a5ad7fc8f4046a8a9439317b63f5a5.tar.gz | |
tests: skip AF_UNIX tests when unavailable
UNIX sockets aren't available under Windows, so skip the test.
Change-Id: Ic4ca22d161c6dee628352aad07ac6aaceb472ac2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/540002
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_git_trace2_event_log.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_git_trace2_event_log.py b/tests/test_git_trace2_event_log.py index d32148872..bbeb45350 100644 --- a/tests/test_git_trace2_event_log.py +++ b/tests/test_git_trace2_event_log.py | |||
| @@ -368,6 +368,7 @@ class EventLogTestCase(unittest.TestCase): | |||
| 368 | with self.assertRaises(TypeError): | 368 | with self.assertRaises(TypeError): |
| 369 | self._event_log_module.Write(path=1234) | 369 | self._event_log_module.Write(path=1234) |
| 370 | 370 | ||
| 371 | @unittest.skipIf(not hasattr(socket, "AF_UNIX"), "Requires AF_UNIX sockets") | ||
| 371 | def test_write_socket(self): | 372 | def test_write_socket(self): |
| 372 | """Test Write() with Unix domain socket for |path| and validate received | 373 | """Test Write() with Unix domain socket for |path| and validate received |
| 373 | traces.""" | 374 | traces.""" |
