mirror of
https://github.com/google/go-attestation.git
synced 2024-12-19 04:57:59 +00:00
This commit is contained in:
parent
e0bd974e4e
commit
f1ff544e51
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user