aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-12-18 12:48:59 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-18 12:48:59 +0100
commit4edaba9329e6f5c61daa591ee8922c1bbc3b3e11 (patch)
tree87be043fa7b8800d1337dd4f31a2a4739a42668c /pkg
parent1e30dd27eeb009adf8dfbd70ce863f5d99b5f483 (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.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 {