Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add ignore method
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Jul 23, 2018
1 parent 166a8f4 commit 0be8248
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,16 @@ import java.net.URL

import org.apache.commons.io.FileUtils
import org.apache.mxnet.Context
import org.scalatest.{BeforeAndAfterAll, FunSuite}
import org.scalatest.{BeforeAndAfterAll, FunSuite, Ignore}
import org.slf4j.LoggerFactory

import scala.sys.process.Process

@Ignore
class GanExampleSuite extends FunSuite with BeforeAndAfterAll{
private val logger = LoggerFactory.getLogger(classOf[GanExampleSuite])

test("Example CI: Test GAN MNIST") {
val disableTest = true
if (disableTest) {
logger.info("Temporarily disable this test due to the Memory leaks")
} else {
if (System.getenv().containsKey("SCALA_TEST_ON_GPU") &&
System.getenv("SCALA_TEST_ON_GPU").toInt == 1) {
logger.info("Downloading mnist model")
Expand All @@ -60,6 +57,5 @@ class GanExampleSuite extends FunSuite with BeforeAndAfterAll{
} else {
logger.info("GPU test only, skipped...")
}
}
}
}

0 comments on commit 0be8248

Please sign in to comment.