Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: re-enable hydra tests #1996

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)
}
}