launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #29127
[Merge] ~cjwatson/lpcraft:move-project-dir into lpcraft:main
Colin Watson has proposed merging ~cjwatson/lpcraft:move-project-dir into lpcraft:main.
Commit message:
Move project directory to /build/lpcraft/project
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/lpcraft/+git/lpcraft/+merge/429388
This makes it more practical to drop privileges, since `/root` is typically only readable by the root user. See LP #1982954.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/lpcraft:move-project-dir into lpcraft:main.
diff --git a/NEWS.rst b/NEWS.rst
index 50d186f..1d3a328 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -5,7 +5,8 @@ Version history
0.0.30 (unreleased)
===================
-- Nothing yet.
+- Move project directory from ``/root/lpcraft/project`` to
+ ``/build/lpcraft/project``, making it more practical to drop privileges.
0.0.29 (2022-08-24)
===================
diff --git a/lpcraft/commands/tests/test_run.py b/lpcraft/commands/tests/test_run.py
index 93c5fcd..de8716a 100644
--- a/lpcraft/commands/tests/test_run.py
+++ b/lpcraft/commands/tests/test_run.py
@@ -163,7 +163,7 @@ class TestRun(RunBaseTestCase):
execute_run.assert_called_once_with(
["bash", "--noprofile", "--norc", "-ec", "pyproject-build"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -262,7 +262,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -350,7 +350,7 @@ class TestRun(RunBaseTestCase):
)
execute_run.assert_called_once_with(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -396,7 +396,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -409,7 +409,7 @@ class TestRun(RunBaseTestCase):
"-ec",
"pyproject-build",
],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -452,21 +452,21 @@ class TestRun(RunBaseTestCase):
[
call(
["apt", "update"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["apt", "install", "-y", "git"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["bash", "--noprofile", "--norc", "-ec", "ls -la"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -521,14 +521,14 @@ class TestRun(RunBaseTestCase):
[
call(
["apt", "update"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["apt", "install", "-y", "git"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -570,7 +570,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -644,7 +644,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", command],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -703,7 +703,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", command],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -756,14 +756,14 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -776,7 +776,7 @@ class TestRun(RunBaseTestCase):
"-ec",
"pyproject-build",
],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -818,7 +818,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={"TOX_SKIP_ENV": "^(?!lint-)"},
stdout=ANY,
stderr=ANY,
@@ -860,7 +860,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={"PIP_INDEX_URL": "http://pypi.example.com/simple"},
stdout=ANY,
stderr=ANY,
@@ -1881,7 +1881,7 @@ class TestRun(RunBaseTestCase):
),
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -1922,7 +1922,7 @@ class TestRun(RunBaseTestCase):
[
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -1935,14 +1935,14 @@ class TestRun(RunBaseTestCase):
"nginx",
"apache2",
],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -1983,7 +1983,7 @@ class TestRun(RunBaseTestCase):
[
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -2308,7 +2308,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={
"DOUBLE_EQUAL": "value_with=another_equal_sign",
},
@@ -2357,7 +2357,7 @@ class TestRun(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={
"PIP_INDEX_URL": "http://local-pypi.example.com/simple"
},
@@ -2483,21 +2483,21 @@ class TestRun(RunBaseTestCase):
[
call(
["apt", "update"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["apt", "install", "-y", "git"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["bash", "--noprofile", "--norc", "-ec", "ls -la"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -2917,7 +2917,7 @@ class TestRunOne(RunBaseTestCase):
execute_run.assert_called_once_with(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -3025,7 +3025,7 @@ class TestRunOne(RunBaseTestCase):
)
execute_run.assert_called_once_with(
["bash", "--noprofile", "--norc", "-ec", "pyproject-build"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -3073,7 +3073,7 @@ class TestRunOne(RunBaseTestCase):
)
execute_run.assert_called_once_with(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -3293,21 +3293,21 @@ class TestRunOne(RunBaseTestCase):
[
call(
["apt", "update"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["apt", "install", "-y", "git"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["bash", "--noprofile", "--norc", "-ec", "ls -la"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -3362,7 +3362,7 @@ class TestRunOne(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={"PIP_INDEX_URL": "http://pypi.example.com/simple"},
stdout=ANY,
stderr=ANY,
@@ -3407,7 +3407,7 @@ class TestRunOne(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={
"DOUBLE_EQUAL": "value_with=another_equal_sign",
},
@@ -3458,7 +3458,7 @@ class TestRunOne(RunBaseTestCase):
[
call(
["bash", "--noprofile", "--norc", "-ec", "tox"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={
"PIP_INDEX_URL": "http://local-pypi.example.com/simple"
},
@@ -3669,21 +3669,21 @@ class TestRunOne(RunBaseTestCase):
[
call(
["apt", "update"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["apt", "install", "-y", "git"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["bash", "--noprofile", "--norc", "-ec", "ls -la"],
- cwd=Path("/root/lpcraft/project"),
+ cwd=Path("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
diff --git a/lpcraft/env.py b/lpcraft/env.py
index 0cb51e3..309e79b 100644
--- a/lpcraft/env.py
+++ b/lpcraft/env.py
@@ -13,4 +13,4 @@ def get_managed_environment_home_path() -> Path:
def get_managed_environment_project_path() -> Path:
"""Path for project when running in managed environment."""
- return get_managed_environment_home_path() / "lpcraft" / "project"
+ return Path("/build/lpcraft/project")
diff --git a/lpcraft/plugin/tests/test_plugins.py b/lpcraft/plugin/tests/test_plugins.py
index 3a9a357..1def73b 100644
--- a/lpcraft/plugin/tests/test_plugins.py
+++ b/lpcraft/plugin/tests/test_plugins.py
@@ -58,7 +58,7 @@ class TestPlugins(CommandBaseTestCase):
[
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"TOX_TESTENV_PASSENV": "http_proxy https_proxy"},
stdout=ANY,
stderr=ANY,
@@ -72,7 +72,7 @@ class TestPlugins(CommandBaseTestCase):
"nginx",
"apache2",
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"TOX_TESTENV_PASSENV": "http_proxy https_proxy"},
stdout=ANY,
stderr=ANY,
@@ -85,7 +85,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
"python3 -m pip install tox==3.24.5; tox",
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"TOX_TESTENV_PASSENV": "http_proxy https_proxy"},
stdout=ANY,
stderr=ANY,
@@ -157,7 +157,7 @@ class TestPlugins(CommandBaseTestCase):
[
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"TOX_TESTENV_PASSENV": "http_proxy https_proxy"},
stdout=ANY,
stderr=ANY,
@@ -171,14 +171,14 @@ class TestPlugins(CommandBaseTestCase):
"nginx",
"apache2",
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"TOX_TESTENV_PASSENV": "http_proxy https_proxy"},
stdout=ANY,
stderr=ANY,
),
call(
["bash", "--noprofile", "--norc", "-ec", "ls"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"TOX_TESTENV_PASSENV": "http_proxy https_proxy"},
stdout=ANY,
stderr=ANY,
@@ -217,7 +217,7 @@ class TestPlugins(CommandBaseTestCase):
[
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -230,7 +230,7 @@ class TestPlugins(CommandBaseTestCase):
"python3-pip",
"python3-venv",
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -243,7 +243,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
"python3 -m pip install build==0.7.0; python3 -m build", # noqa: E501
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -388,7 +388,7 @@ class TestPlugins(CommandBaseTestCase):
[
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -404,7 +404,7 @@ class TestPlugins(CommandBaseTestCase):
"python3-venv",
"wget",
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -417,7 +417,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
pre_run_command,
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -430,7 +430,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
run_command,
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -443,7 +443,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
post_run_command,
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -554,7 +554,7 @@ class TestPlugins(CommandBaseTestCase):
self.assertEqual(
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -587,7 +587,7 @@ class TestPlugins(CommandBaseTestCase):
"libtool",
"zlib1g-dev",
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -603,7 +603,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
pre_run_command,
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -619,7 +619,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
run_command,
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -635,7 +635,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
post_run_command,
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={"CONDA_ENV": "lpci"},
stdout=ANY,
stderr=ANY,
@@ -994,14 +994,14 @@ class TestPlugins(CommandBaseTestCase):
[
call(
["apt", "update"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
),
call(
["apt", "install", "-y", "golang-1.17", "file", "git"],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
@@ -1014,7 +1014,7 @@ class TestPlugins(CommandBaseTestCase):
"-ec",
"\nexport PATH=/usr/lib/go-1.17/bin/:$PATH\ngo build -x examples/go-top.go", # noqa: E501
],
- cwd=PosixPath("/root/lpcraft/project"),
+ cwd=PosixPath("/build/lpcraft/project"),
env={},
stdout=ANY,
stderr=ANY,
diff --git a/lpcraft/providers/tests/test_lxd.py b/lpcraft/providers/tests/test_lxd.py
index 0dffc88..7395b96 100644
--- a/lpcraft/providers/tests/test_lxd.py
+++ b/lpcraft/providers/tests/test_lxd.py
@@ -409,7 +409,7 @@ class TestLXDProvider(TestCase):
),
call().lxc.exec(
instance_name=expected_instance_name,
- command=["rm", "-rf", "/root/lpcraft/project"],
+ command=["rm", "-rf", "/build/lpcraft/project"],
project="test-project",
remote="test-remote",
runner=subprocess.run,
@@ -417,7 +417,7 @@ class TestLXDProvider(TestCase):
),
call().lxc.exec(
instance_name=expected_instance_name,
- command=["mkdir", "-p", "/root/lpcraft"],
+ command=["mkdir", "-p", "/build/lpcraft"],
project="test-project",
remote="test-remote",
runner=subprocess.run,
@@ -429,7 +429,7 @@ class TestLXDProvider(TestCase):
"cp",
"-a",
"/root/tmp-project",
- "/root/lpcraft/project",
+ "/build/lpcraft/project",
],
project="test-project",
remote="test-remote",
@@ -446,7 +446,7 @@ class TestLXDProvider(TestCase):
[
call().lxc.exec(
instance_name=expected_instance_name,
- command=["rm", "-rf", "/root/lpcraft/project"],
+ command=["rm", "-rf", "/build/lpcraft/project"],
project="test-project",
remote="test-remote",
runner=subprocess.run,
@@ -526,7 +526,7 @@ class TestLXDProvider(TestCase):
),
call().lxc.exec(
instance_name=expected_instance_name,
- command=["rm", "-rf", "/root/lpcraft/project"],
+ command=["rm", "-rf", "/build/lpcraft/project"],
project="test-project",
remote="test-remote",
runner=subprocess.run,
@@ -534,7 +534,7 @@ class TestLXDProvider(TestCase):
),
call().lxc.exec(
instance_name=expected_instance_name,
- command=["mkdir", "-p", "/root/lpcraft"],
+ command=["mkdir", "-p", "/build/lpcraft"],
project="test-project",
remote="test-remote",
runner=subprocess.run,
@@ -546,7 +546,7 @@ class TestLXDProvider(TestCase):
"cp",
"-a",
"/root/tmp-project",
- "/root/lpcraft/project",
+ "/build/lpcraft/project",
],
project="test-project",
remote="test-remote",
@@ -556,7 +556,7 @@ class TestLXDProvider(TestCase):
call().unmount(target=Path("/root/tmp-project")),
call().lxc.exec(
instance_name=expected_instance_name,
- command=["rm", "-rf", "/root/lpcraft/project"],
+ command=["rm", "-rf", "/build/lpcraft/project"],
project="test-project",
remote="test-remote",
runner=subprocess.run,
@@ -586,7 +586,7 @@ class TestLXDProvider(TestCase):
[
call().lxc.exec(
instance_name=expected_instance_name,
- command=["rm", "-rf", "/root/lpcraft/project"],
+ command=["rm", "-rf", "/build/lpcraft/project"],
project="test-project",
remote="test-remote",
runner=subprocess.run,
diff --git a/lpcraft/tests/test_env.py b/lpcraft/tests/test_env.py
index 6371c03..4b73516 100644
--- a/lpcraft/tests/test_env.py
+++ b/lpcraft/tests/test_env.py
@@ -16,6 +16,6 @@ class TestEnvironment(TestCase):
def test_get_managed_environment_project_path(self):
self.assertEqual(
- Path("/root/lpcraft/project"),
+ Path("/build/lpcraft/project"),
env.get_managed_environment_project_path(),
)