attest: restore change from a35bd36 mistakingly removed in be496f1 (#277)

This commit is contained in:
Brandon Weeks 2022-05-31 13:12:21 -07:00 committed by GitHub
parent e0bd974e4e
commit f1ff544e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,9 +12,8 @@
// License for the specific language governing permissions and limitations under // License for the specific language governing permissions and limitations under
// the License. // the License.
//go:build (!localtest || !tpm12) && linux && cgo //go:build (!localtest || !tpm12) && cgo
// +build !localtest !tpm12 // +build !localtest !tpm12
// +build linux
// +build cgo // +build cgo
// NOTE: simulator requires cgo, hence the build tag. // NOTE: simulator requires cgo, hence the build tag.
@ -35,7 +34,7 @@ func setupSimulatedTPM(t *testing.T) (*simulator.Simulator, *TPM) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
attestTPM, err := OpenTPM(&OpenConfig{CommandChannel: &linuxCmdChannel{tpm}}) attestTPM, err := OpenTPM(&OpenConfig{CommandChannel: &fakeCmdChannel{tpm}})
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }