test(tools): use pure Nix shell

More closely corresponds to the “real” Nix build
This commit is contained in:
Khue Doan 2022-10-03 11:49:14 +07:00
parent 4f6baed675
commit 7a50009c46

View File

@ -61,6 +61,7 @@ func TestToolsContainer(t *testing.T) {
}, },
Command: []string{ Command: []string{
"nix-shell", "nix-shell",
"--pure",
"--command", "exit", "--command", "exit",
}, },
} }
@ -79,8 +80,8 @@ func TestToolsNixShell(t *testing.T) {
command := shell.Command{ command := shell.Command{
Command: "nix-shell", Command: "nix-shell",
Args: []string{ Args: []string{
"--command", "--pure",
"exit", "--command", "exit",
}, },
WorkingDir: projectRoot, WorkingDir: projectRoot,
} }