mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
DEV: Fix sh: /bin/rm: Argument list too long
(#13371)
That error happens when you accrued too many temporary files in `tmp/stylesheet-cache`.
This commit is contained in:
parent
6abc45e57b
commit
9c1ef2a58a
@ -19,7 +19,7 @@ describe StylesheetsController do
|
||||
expect(cached.digest).to eq digest
|
||||
|
||||
# tmp folder destruction and cached
|
||||
`rm #{Stylesheet::Manager.cache_fullpath}/*`
|
||||
`rm -rf #{Stylesheet::Manager.cache_fullpath}`
|
||||
|
||||
get "/stylesheets/desktop_rtl_#{digest}.css"
|
||||
expect(response.status).to eq(200)
|
||||
@ -34,7 +34,7 @@ describe StylesheetsController do
|
||||
builder = Stylesheet::Manager.new(:desktop, theme.id)
|
||||
builder.compile
|
||||
|
||||
`rm #{Stylesheet::Manager.cache_fullpath}/*`
|
||||
`rm -rf #{Stylesheet::Manager.cache_fullpath}`
|
||||
|
||||
get "/stylesheets/#{builder.stylesheet_filename.sub(".css", "")}.css"
|
||||
|
||||
@ -47,7 +47,7 @@ describe StylesheetsController do
|
||||
builder = Stylesheet::Manager.new(:desktop_theme, theme.id)
|
||||
builder.compile
|
||||
|
||||
`rm #{Stylesheet::Manager.cache_fullpath}/*`
|
||||
`rm -rf #{Stylesheet::Manager.cache_fullpath}`
|
||||
|
||||
get "/stylesheets/#{builder.stylesheet_filename.sub(".css", "")}.css"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user