Don't show stdout from collectstatic during tests.

This commit is contained in:
Ned Batchelder
2012-11-05 10:58:25 -05:00
committed by Calen Pennington
parent 459c5e322f
commit 7033faf18c

View File

@@ -134,7 +134,11 @@ TEST_TASKS = []
desc "Run collectstatic in the specified environment"
task "#{system}:collectstatic:#{env}" => :predjango do
sh("#{django_admin(system, env, 'collectstatic', '--noinput')}")
sh("#{django_admin(system, env, 'collectstatic', '--noinput')} > /tmp/collectstatic.out") do |ok, status|
if !ok
abort "collectstatic failed!"
end
end
end
end
end
@@ -270,4 +274,4 @@ task :doc => :builddocs do
Dir.chdir('docs/build/html') do
sh('open index.html')
end
end
end