libct: rename root to stateDir in struct Container

The name "root" (or "containerRoot") is confusing; one might think it is
the root of container's file system (the directory we chroot into).

Rename to stateDir for clarity.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2023-10-03 13:04:27 -07:00
committed by Aleksa Sarai
parent c89faacc13
commit efbebb39b5
5 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -233,8 +233,8 @@ func TestGetContainerStateAfterUpdate(t *testing.T) {
}
container := &Container{
root: t.TempDir(),
id: "myid",
stateDir: t.TempDir(),
id: "myid",
config: &configs.Config{
Namespaces: []configs.Namespace{
{Type: configs.NEWPID},