Simplify call to test (always shows output, but that's what we use most of the time)
This commit is contained in:
parent
11370e5cd0
commit
a89938c472
1 changed files with 2 additions and 15 deletions
15
base.rake
15
base.rake
|
@ -2,7 +2,7 @@ require 'rake/clean'
|
||||||
require 'set'
|
require 'set'
|
||||||
|
|
||||||
PWD = Dir.getwd
|
PWD = Dir.getwd
|
||||||
BASE_DIR = File.expand_path "#{PWD}/../"
|
BASE_DIR = File.expand_path "#{PWD}"
|
||||||
|
|
||||||
SRC = FileList['src/*.erl']
|
SRC = FileList['src/*.erl']
|
||||||
OBJ = SRC.pathmap("%{src,ebin}X.beam")
|
OBJ = SRC.pathmap("%{src,ebin}X.beam")
|
||||||
|
@ -138,19 +138,6 @@ def run_tests(dir, rest = "")
|
||||||
#{get_suites(dir)} -logdir #{dir}/logs -env TEST_DIR #{PWD}/#{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
|
end
|
||||||
|
|
||||||
def get_cover(dir)
|
def get_cover(dir)
|
||||||
|
|
Loading…
Reference in a new issue