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.
This commit is contained in:
parent
c25e11563c
commit
47aa71e633
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user