From 47aa71e633bbd9551f91972831cc787a968242f9 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 27 Jan 2016 23:02:41 +0100 Subject: tests: don't try to rm an unexisting file This line is necessary if the test fails. If it passes the file won't exist anymore and shouldn't be removed. --- Library/Homebrew/test/test_integration_cmds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 805980fdf..34d681fc4 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -159,7 +159,7 @@ class IntegrationCommandTests < Homebrew::TestCase (HOMEBREW_CACHE/"test").write "test" assert_match "#{HOMEBREW_CACHE}/test", cmd("cleanup", "--prune=all") ensure - (HOMEBREW_CACHE/"test").rmtree + FileUtils.rm_f HOMEBREW_CACHE/"test" end def test_readall -- cgit v1.2.3