diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-04-17 12:39:00 -0700 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-04-17 13:07:01 -0700 |
commit | 52c3b417031ec7ebcecd68f7b9f875a5510a9b0b (patch) | |
tree | a37b5683a4d8f73010447eee322227f555b2dd59 /scalalib/test/src | |
parent | 2bc041237984bf674ea144ad1a14710c3ed2e47c (diff) | |
download | mill-52c3b417031ec7ebcecd68f7b9f875a5510a9b0b.tar.gz mill-52c3b417031ec7ebcecd68f7b9f875a5510a9b0b.tar.bz2 mill-52c3b417031ec7ebcecd68f7b9f875a5510a9b0b.zip |
avoid printing useless stacktraces when subprocess runs fail
Diffstat (limited to 'scalalib/test/src')
-rw-r--r-- | scalalib/test/src/mill/scalalib/HelloWorldTests.scala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala index a52ab7a1..f1342d04 100644 --- a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala +++ b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala @@ -311,11 +311,7 @@ object HelloWorldTests extends TestSuite { 'notRunInvalidMainObject - workspaceTest(HelloWorld){eval => - val Left(Result.Exception(err, _)) = eval.apply(HelloWorld.core.runMain("Invalid")) - - assert( - err.isInstanceOf[InteractiveShelloutException] - ) + val Left(Result.Failure("subprocess failed", _)) = eval.apply(HelloWorld.core.runMain("Invalid")) } 'notRunWhenCompileFailed - workspaceTest(HelloWorld){eval => write.append(HelloWorld.millSourcePath / 'core / 'src / "Main.scala", "val x: ") |