Skip to content

Commit

Permalink
test: re-enable hydra tests
Browse files Browse the repository at this point in the history
We have a fresh Hydra license that I've added to the secrets. Let's see
how re-enabling the tests work.
  • Loading branch information
ckipp01 committed Jan 27, 2023
1 parent 07b4a1c commit 996340c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions frontend/src/test/scala/bloop/HydraCompileSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package bloop

import java.nio.file.Paths

import scala.tools.nsc.Properties

import bloop.io.AbsolutePath
Expand Down Expand Up @@ -53,14 +55,13 @@ object HydraCompileSpec extends BaseCompileSpec {
}
}

// private lazy val hydraLicenseExists: Boolean = {
// val hydraLicense = Paths.get(System.getProperty("user.home"), ".triplequote", "hydra.license")
// hydraLicense.toFile.exists()
// }
private lazy val hydraLicenseExists: Boolean = {
val hydraLicense = Paths.get(System.getProperty("user.home"), ".triplequote", "hydra.license")
hydraLicense.toFile.exists()
}

override def test(name: String)(fun: => Any): Unit = {
// if (hydraLicenseExists) super.test(name)(fun)
// else ignore(name, "Hydra license is missing")(fun)
ignore(name, "Hydra license is missing")(fun)
if (hydraLicenseExists) super.test(name)(fun)
else ignore(name, "Hydra license is missing")(fun)
}
}

0 comments on commit 996340c

Please sign in to comment.