integration tests: testball install overridable

This commit is contained in:
Alyssa Ross 2016-09-27 22:01:22 +01:00
parent 563b56701b
commit 08c898f280

View File

@ -127,7 +127,6 @@ class IntegrationCommandTestCase < Homebrew::TestCase
sha256 "#{TESTBALL_SHA256}" sha256 "#{TESTBALL_SHA256}"
option "with-foo", "Build with foo" option "with-foo", "Build with foo"
#{content}
def install def install
(prefix/"foo"/"test").write("test") if build.with? "foo" (prefix/"foo"/"test").write("test") if build.with? "foo"
@ -138,6 +137,8 @@ class IntegrationCommandTestCase < Homebrew::TestCase
system ENV.cc, "test.c", "-o", bin/"test" system ENV.cc, "test.c", "-o", bin/"test"
end end
#{content}
# something here # something here
EOS EOS
when "foo" when "foo"