Skip to content

Commit 5904f4e

Browse files
committed
attest: restore change from a35bd36 mistakingly removed in be496f1
1 parent e0bd974 commit 5904f4e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

attest/attest_simulated_tpm20_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
// License for the specific language governing permissions and limitations under
1313
// the License.
1414

15-
//go:build (!localtest || !tpm12) && linux && cgo
15+
//go:build (!localtest || !tpm12) && cgo
1616
// +build !localtest !tpm12
17-
// +build linux
1817
// +build cgo
1918

2019
// NOTE: simulator requires cgo, hence the build tag.
@@ -35,7 +34,7 @@ func setupSimulatedTPM(t *testing.T) (*simulator.Simulator, *TPM) {
3534
if err != nil {
3635
t.Fatal(err)
3736
}
38-
attestTPM, err := OpenTPM(&OpenConfig{CommandChannel: &linuxCmdChannel{tpm}})
37+
attestTPM, err := OpenTPM(&OpenConfig{CommandChannel: &fakeCmdChannel{tpm}})
3938
if err != nil {
4039
t.Fatal(err)
4140
}

0 commit comments

Comments
 (0)