]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/moddeps: use testenv.Command instead of exec.Command in tests
authorBryan C. Mills <bcmills@google.com>
Tue, 15 Nov 2022 15:11:08 +0000 (10:11 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 15 Nov 2022 20:21:28 +0000 (20:21 +0000)
commit6484e813b5ec80a399ed1b8e4608070db2144b39
treea68d8a2ba966982d4d6a4335d39aede9ac4f78b8
parentc9f7370a096a8b5c2db5996b8b6adbad4e2747d5
cmd/internal/moddeps: use testenv.Command instead of exec.Command in tests

testenv.Command sets a default timeout based on the test's deadline
and sends SIGQUIT (where supported) in case of a hang.

Change-Id: Ia18c323067a416381e5a70d08c50f51576054a79
Reviewed-on: https://go-review.googlesource.com/c/go/+/450698
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/moddeps/moddeps_test.go