From 6c3fbf76da5bf92c9ef4d9ee80803c1bc5856213 Mon Sep 17 00:00:00 2001 From: Dale Wijnand <344610+dwijnand@users.noreply.github.com> Date: Sun, 10 Mar 2019 17:53:41 +0000 Subject: [PATCH] scala@2.*: test without starting the fsc daemon (#37759) --- Formula/scala@2.10.rb | 4 +--- Formula/scala@2.11.rb | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Formula/scala@2.10.rb b/Formula/scala@2.10.rb index 50f2fde5a8..4f545b674b 100644 --- a/Formula/scala@2.10.rb +++ b/Formula/scala@2.10.rb @@ -36,9 +36,7 @@ class ScalaAT210 < Formula } EOS - out = shell_output("#{bin}/scala #{file}").strip - # Shut down the compile server so as not to break Travis - system bin/"fsc", "-shutdown" + out = shell_output("#{bin}/scala -nc #{file}").strip assert_equal "4", out end diff --git a/Formula/scala@2.11.rb b/Formula/scala@2.11.rb index a7d7ce87f2..1017b37c43 100644 --- a/Formula/scala@2.11.rb +++ b/Formula/scala@2.11.rb @@ -36,9 +36,7 @@ class ScalaAT211 < Formula } EOS - out = shell_output("#{bin}/scala #{file}").strip - # Shut down the compile server so as not to break Travis - system bin/"fsc", "-shutdown" + out = shell_output("#{bin}/scala -nc #{file}").strip assert_equal "4", out end