aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/vcs/git_repo_test.go5
1 files changed, 5 insertions, 0 deletions
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 {