sbt / util

util modules for sbt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scripted tests gets stuck

eed3si9n opened this issue · comments

steps

  1. Use util 0.1.0-M9 in sbt/sbt
  2. Have some error in scripted test such that the build doesn't load

problem

The scripted gets stuck forever.

expectation

scripted comes back with error.

notes

When the build doesn't load sbt waits for the user's input using SimpleReader.readLine:

val result = (SimpleReader.readLine("Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? ") getOrElse Quit).toLowerCase(Locale.ENGLISH)

Thread sleep injection seem to interfere with this. Work around is to not to inject thread sleep by default.