From dc143e209608d20363cfd50bf537be4c43a2e45b Mon Sep 17 00:00:00 2001 From: Luis Sanchez Date: Mon, 10 Apr 2017 09:59:07 -0400 Subject: [PATCH] [FAB-3060] skip java chaincode tests on non-x86_84 Java chaincode does not currently work on ppc64le and s390x. See FAB-1794 for more info. Change-Id: I2e03b0b0e9b2b1a26c88f7669dfe941dfd0816bd Signed-off-by: Luis Sanchez --- core/chaincode/exectransaction_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/chaincode/exectransaction_test.go b/core/chaincode/exectransaction_test.go index e6a825c8aad..15eb014dfcc 100644 --- a/core/chaincode/exectransaction_test.go +++ b/core/chaincode/exectransaction_test.go @@ -23,6 +23,7 @@ import ( "net" "os" "path/filepath" + "runtime" "strconv" "strings" "sync" @@ -643,6 +644,10 @@ func TestExecuteInvokeTransaction(t *testing.T) { for _, tc := range testCases { t.Run(tc.chaincodeType.String(), func(t *testing.T) { + if tc.chaincodeType == pb.ChaincodeSpec_JAVA && runtime.GOARCH != "amd64" { + t.Skip("No Java chaincode support yet on non-x86_64.") + } + chainID := util.GetTestChainID() lis, err := initPeer(chainID) @@ -1549,6 +1554,10 @@ func TestChaincodeInitializeInitError(t *testing.T) { for _, tc := range testCases { t.Run(tc.name+"_"+tc.chaincodeType.String(), func(t *testing.T) { + if tc.chaincodeType == pb.ChaincodeSpec_JAVA && runtime.GOARCH != "amd64" { + t.Skip("No Java chaincode support yet on non-x86_64.") + } + // initialize peer if listener, err := initPeer(channelID); err != nil { t.Errorf("Error creating peer: %s", err)