From 4edaba9329e6f5c61daa591ee8922c1bbc3b3e11 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 18 Dec 2018 12:48:59 +0100 Subject: pkg/vcs: disable sandboxing in tests syz-ci disabling does not work across syz-ci updates. --- pkg/vcs/git_repo_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg') diff --git a/pkg/vcs/git_repo_test.go b/pkg/vcs/git_repo_test.go index e6f94c117..848e369c9 100644 --- a/pkg/vcs/git_repo_test.go +++ b/pkg/vcs/git_repo_test.go @@ -15,6 +15,11 @@ import ( "github.com/google/syzkaller/pkg/osutil" ) +func init() { + // Disable sandboxing entirely because we create test repos without sandboxing. + os.Setenv("SYZ_DISABLE_SANDBOXING", "yes") +} + func TestGitRepo(t *testing.T) { baseDir, err := ioutil.TempDir("", "syz-git-test") if err != nil { -- cgit mrf-deployment