reclient_helper: fix path for unix domain socket

Bug: b/278846515
Change-Id: Ic836b9e62b30eb2dd4fd8d692cdf7001d8eb90ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4570164
Commit-Queue: Junji Watanabe <jwata@google.com>
Reviewed-by: Junji Watanabe <jwata@google.com>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
changes/64/4570164/4
Takuto Ikuta 2 years ago committed by LUCI CQ
parent bf67b23193
commit b665de65cd

@ -137,7 +137,7 @@ def set_reproxy_path_flags(out_dir, make_dirs=True):
# unix domain socket has path length limit, so use fixed size path here.
# ref: https://www.man7.org/linux/man-pages/man7/unix.7.html
os.environ.setdefault(
"RBE_server_address", "unix://tmp/reproxy_%s.sock" %
"RBE_server_address", "unix:///tmp/reproxy_%s.sock" %
hashlib.sha256(tmp_dir.encode()).hexdigest())

@ -87,7 +87,7 @@ class NinjaReclientTest(trial_dir.TestCase):
else:
self.assertEqual(
os.environ.get('RBE_server_address'),
"unix://tmp/reproxy_%s.sock" % hashlib.sha256(
"unix:///tmp/reproxy_%s.sock" % hashlib.sha256(
os.path.join(self.root_dir, "out", "a",
".reproxy_tmp").encode()).hexdigest())

Loading…
Cancel
Save