diff --git a/scala/ppml/src/test/scala/com/intel/analytics/bigdl/ppml/attestation/SGXDCAPQuoteVerifierImplSpec.scala b/scala/ppml/src/test/scala/com/intel/analytics/bigdl/ppml/attestation/SGXDCAPQuoteVerifierImplSpec.scala index 6a097335d0e..34beab619d1 100644 --- a/scala/ppml/src/test/scala/com/intel/analytics/bigdl/ppml/attestation/SGXDCAPQuoteVerifierImplSpec.scala +++ b/scala/ppml/src/test/scala/com/intel/analytics/bigdl/ppml/attestation/SGXDCAPQuoteVerifierImplSpec.scala @@ -52,8 +52,13 @@ class SGXDCAPQuoteVerifierImplSpec extends FlatSpec with Matchers { bufIn.close() in.close() logger.info(quote) - val verifyQuoteResult = sGXDCAPQuoteVerifierImplSpec.verifyQuote(quote) - verifyQuoteResult shouldNot equal(-1) - logger.info(verifyQuoteResult) + + if (env.contains("SGXSDK")) { + if (env("SGXSDK").toBoolean == true) { + val verifyQuoteResult = sGXDCAPQuoteVerifierImplSpec.verifyQuote(quote) + verifyQuoteResult shouldNot equal(-1) + logger.info(verifyQuoteResult) + } + } } }