]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/archive: use testenv.Command instead of exec.Command in tests
authorBryan C. Mills <bcmills@google.com>
Tue, 15 Nov 2022 15:14:28 +0000 (10:14 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 15 Nov 2022 20:21:32 +0000 (20:21 +0000)
commitd703ad54bcf6268e1f1813b261067421b7caa816
treef5c20ed5560ff216c746f8ae4fba004b524e484e
parent5ccee1199e11b830ae32772d5ebc7b35e356b7f3
cmd/internal/archive: 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: I6f8391da50e74919ccc59cd43ccae99affab8798
Reviewed-on: https://go-review.googlesource.com/c/go/+/450700
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/archive/archive_test.go