X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4f1152fbdd0506d3d07449bedb2479f2938bcf73..f10e92fe095a7b292dde71da0f1d8465312236d7:/lib/install/deps_test.go diff --git a/lib/install/deps_test.go b/lib/install/deps_test.go index 5dfdbfe0e5..b9274b425c 100644 --- a/lib/install/deps_test.go +++ b/lib/install/deps_test.go @@ -6,25 +6,17 @@ // Depending on host/network speed, Go's default 10m test timeout // might be too short; recommend "go test -timeout 20m -tags docker". // +//go:build docker // +build docker package install import ( "os" - "testing" "gopkg.in/check.v1" ) -func Test(t *testing.T) { - check.TestingT(t) -} - -var _ = check.Suite(&Suite{}) - -type Suite struct{} - func (*Suite) TestInstallDeps(c *check.C) { tmp := c.MkDir() script := ` @@ -35,13 +27,14 @@ sourcepath="$(realpath ../..)" docker run -i --rm --workdir /arvados \ -v ${tmp}/arvados-server:/arvados-server:ro \ -v ${sourcepath}:/arvados:ro \ - -v /arvados/apps/workbench/.bundle \ -v /arvados/services/api/.bundle \ -v /arvados/services/api/tmp \ --env http_proxy \ --env https_proxy \ - debian:10 \ - bash -c "/arvados-server install -type test && /arvados-server boot -type test -config doc/examples/config/zzzzz.yml -own-temporary-database -shutdown -timeout 9m" + debian:11 \ + bash -c "/arvados-server install -type test && + git config --global --add safe.directory /arvados && + /arvados-server boot -type test -config doc/examples/config/zzzzz.yml -own-temporary-database -shutdown -timeout 9m" ` - c.Check(runBash(script, os.Stdout, os.Stderr), check.IsNil) + c.Check((&installCommand{}).runBash(script, os.Stdout, os.Stderr), check.IsNil) }