aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2016-01-04 13:41:38 +0100
committerBaptiste Fontaine2016-01-04 15:12:32 +0100
commit8f8c3cc1b195b29551c10fea40889dae92ac3b55 (patch)
treeed6cc1788175f5a5659270bf64833588e0c970bf /Library
parent78eecda7e9cb864b8bf082392c5c01014a4ed504 (diff)
downloadbrew-8f8c3cc1b195b29551c10fea40889dae92ac3b55.tar.bz2
integration tests: fix failing test
If the test fails above `formula_file`’s definition this line fails because `formula_file` is `nil`. Closes Homebrew/homebrew#47663. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index 2b1375de5..dab987b1f 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -119,7 +119,7 @@ class IntegrationCommandTests < Homebrew::TestCase
ensure
cmd("uninstall", "--force", "testball")
cmd("cleanup", "--force", "--prune=all")
- formula_file.unlink
+ formula_file.unlink unless formula_file.nil?
end
def test_uninstall