diff options
| author | Baptiste Fontaine | 2016-01-27 23:02:41 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-01-27 23:03:44 +0100 |
| commit | 47aa71e633bbd9551f91972831cc787a968242f9 (patch) | |
| tree | 945c39c9d82b390f65907c37a271cd194ce479e0 /Library | |
| parent | c25e11563c839f2d4c49cb28d3bcbff177cc3fb3 (diff) | |
| download | brew-47aa71e633bbd9551f91972831cc787a968242f9.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 2 |
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 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 |
