From 8b6e3966c7b2ce83ac97c0af338fa6966aebc30d Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Mon, 20 Mar 2023 18:09:24 +0300 Subject: [PATCH] helper.py: make shell compatible with build_* (#9959) `infra/helper.py shell project` used to open docker container with different volumes mounted than `infra/helper.py build_fuzzers project` Use the same logics in shell for project workdir calculation as it's used during build procedure. This way we may easier troubleshoot build issues in shell. --- infra/helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/helper.py b/infra/helper.py index ae505685a..d69b19155 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -1644,9 +1644,10 @@ def shell(args): run_args = _env_to_docker_args(env) if args.source_path: + workdir = _workdir_from_dockerfile(args.project) run_args.extend([ '-v', - '%s:%s' % (_get_absolute_path(args.source_path), '/src'), + '%s:%s' % (_get_absolute_path(args.source_path), workdir), ]) run_args.extend([