diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-18 12:48:59 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-18 12:48:59 +0100 |
| commit | 4edaba9329e6f5c61daa591ee8922c1bbc3b3e11 (patch) | |
| tree | 87be043fa7b8800d1337dd4f31a2a4739a42668c /pkg | |
| parent | 1e30dd27eeb009adf8dfbd70ce863f5d99b5f483 (diff) | |
pkg/vcs: disable sandboxing in tests
syz-ci disabling does not work across syz-ci updates.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/vcs/git_repo_test.go | 5 |
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 { |
