aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-05-25 16:30:04 -0700
committerDan Willemsen <dwillemsen@google.com>2018-05-31 14:59:33 -0700
commit184901135cda8bdcc51cab4f16c401a28a510593 (patch)
tree106528a314eb37a15ee059379e9e94247152455c /python
parent86a60ae6fad2b07498212a116022ce465e30167b (diff)
downloadbuild_soong-184901135cda8bdcc51cab4f16c401a28a510593.tar.gz
build_soong-184901135cda8bdcc51cab4f16c401a28a510593.tar.bz2
build_soong-184901135cda8bdcc51cab4f16c401a28a510593.zip
Revert "Revert "Revert "Revert "Add path interposer""""
This reverts commit 09f4540d667a98e548bf5dfc94784382ebedc963. Fixes the raw call to net.Listen in the tests to go through the listen() helper and use the long socket path fallbacks. Removes the use of timeouts from the tests -- the behaviors being tested did not rely on timeouts, so removing them will reduce the flakiness if the build is heavily loading the machine at the same time the test is running. Also fixes some potential nil pointer dereferences. Test: OUT_DIR=<really long> m blueprint_tools Test: `while .../soong-ui-build-paths/test/test; do sleep 0.01; done` with a build running Change-Id: I16d44be7517bc415f1c808284088f4ba40df3bfa
Diffstat (limited to 'python')
-rw-r--r--python/scripts/stub_template_host.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/python/scripts/stub_template_host.txt b/python/scripts/stub_template_host.txt
index b90a28b5..386298eb 100644
--- a/python/scripts/stub_template_host.txt
+++ b/python/scripts/stub_template_host.txt
@@ -18,8 +18,6 @@ def SearchPathEnv(name):
for directory in search_path:
if directory == '': continue
path = os.path.join(directory, name)
- if os.path.islink(path):
- path = os.path.realpath(path)
# Check if path is actual executable file.
if os.path.isfile(path) and os.access(path, os.X_OK):
return path