From 7033faf18c2ed048d2b6b702e0bc9109055d22db Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 5 Nov 2012 10:58:25 -0500 Subject: [PATCH] Don't show stdout from collectstatic during tests. --- rakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rakefile b/rakefile index 30716ca365..73b0c0fd83 100644 --- a/rakefile +++ b/rakefile @@ -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 \ No newline at end of file +end