Merge pull request #3045 from dwijnand/fix-StateOps-fail

Fix StateOps#fail != fail
This commit is contained in:
eugene yokota 2017-03-27 19:48:52 -07:00 committed by GitHub
commit 64ed7c7756
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ object State {
def fail =
{
import BasicCommandStrings.Compat.{ FailureWall => CompatFailureWall }
val remaining = s.remainingCommands.dropWhile(c => c != FailureWall && c != CompatFailureWall)
val remaining =
s.remainingCommands.dropWhile(c => c.commandLine != FailureWall && c.commandLine != CompatFailureWall)
if (remaining.isEmpty)
applyOnFailure(s, Nil, exit(ok = false))
else