Markus Reiter
03b93da296
Use option parser for brew cleanup
.
2018-08-08 13:11:16 +02:00
Markus Reiter
921c6a33dd
Refactor Cleanup
.
2018-08-08 10:40:22 +02:00
Markus Reiter
4a48297d1c
Fix cleanup for files with --
.
2018-08-06 15:40:05 +02:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Mike McQuaid
262666c828
cleanup_spec: add nicer prune matcher alias.
2018-03-28 11:20:57 +01:00
Mike McQuaid
5e1806e796
test: rubocop-rspec style auto-corrects.
...
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Xu Cheng
d3fce64efb
cleanup: fix removing lock files on NFS
...
If the underneath file system is a Network File System,
`brew cleanup` will fail to remove the lock files with following error
message:
Error: Bad file descriptor @ rb_file_flock - /path/to/the/lock_file
This commit fixes such issue and adds the corresponding test case.
2018-03-14 21:50:53 +08:00
mansimarkaur
01714b17ee
Used let for sec_in_a_day and removed redundant after(:each) block
2017-08-27 01:18:41 +05:30
mansimarkaur
5f7a93bceb
Corrected test name
2017-08-27 01:18:41 +05:30
mansimarkaur
ec30de69c3
Added tests for existence of files
2017-08-27 01:18:41 +05:30
mansimarkaur
e7c2efa42f
Corrected disk_cleanup_size test
2017-08-27 01:18:41 +05:30
mansimarkaur
6b5e4bb938
Use let over instance_var
2017-08-27 01:18:40 +05:30
mansimarkaur
86f7d208d0
Added tests for prune?
2017-08-27 01:18:40 +05:30
mansimarkaur
134539aa55
Added tests for cleaning up old files in HOMEBREW_CACHE
2017-08-27 01:18:40 +05:30
mansimarkaur
265d43444b
improved prune all test
2017-08-27 01:18:40 +05:30
mansimarkaur
5e17d63010
Added tests for ARGV prune 'all'
2017-08-27 01:18:40 +05:30
mansimarkaur
c1799bb497
Added tests for disk_cleanup and unremovable kegs
2017-08-27 01:18:40 +05:30
Markus Reiter
2ad3a87045
Silence all specs by default.
2017-07-29 20:25:37 +02:00
Joshua McKinney
48fdd163bc
Brew cleanup: Continue on error removing keg
...
Fixes #2355
Create unremovable_kegs instance var
Check cellar cleanup failure after full cleanup completes
Use module_function in Homebrew::Cleanup as we never instantiate the
class
2017-03-31 01:44:04 -05:00
Markus Reiter
e84e7bd591
Convert Homebrew::Cleanup test to spec.
2017-02-27 17:04:40 +01:00