From a89938c472cbb2c7a60a4771f2ae73e6f6d584e6 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 9 Dec 2008 13:20:19 -0700 Subject: [PATCH] Simplify call to test (always shows output, but that's what we use most of the time) --- base.rake | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/base.rake b/base.rake index c39e814..a36f24f 100644 --- a/base.rake +++ b/base.rake @@ -2,7 +2,7 @@ require 'rake/clean' require 'set' PWD = Dir.getwd -BASE_DIR = File.expand_path "#{PWD}/../" +BASE_DIR = File.expand_path "#{PWD}" SRC = FileList['src/*.erl'] OBJ = SRC.pathmap("%{src,ebin}X.beam") @@ -136,21 +136,8 @@ def run_tests(dir, rest = "") -noshell -s ct_run script_start -s erlang halt \ #{get_cover(dir)} \ #{get_suites(dir)} -logdir #{dir}/logs -env TEST_DIR #{PWD}/#{dir} \ - #{rest}", :verbose => false + #{rest}" , :verbose => false - fail if $?.exitstatus != 0 && !ENV["stop_on_fail"].nil? - - File.open("#{PWD}/#{dir}/logs/raw.log", "w") do |file| - file.write "--- Test run on #{Time.now.to_s} ---\n" - file.write output - file.write "\n\n" - end - - if output[/, 0 failed/] && ENV["verbose"].nil? - puts "==> " + output[/TEST COMPLETE,.*test cases$/] - else - puts output - end end def get_cover(dir)