Without having 'test' in the results extension we cannot generate junit results,

becuase the unity_to_junit.py script (and others) look for *.result*
This commit is contained in:
William Skellenger
2017-05-04 10:07:06 -04:00
parent 7cd25b07a1
commit 33dabf8338
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ File.open(TEST_MAKEFILE, "w") do |mkfile|
runner_source = File.join(RUNNERS_DIR, "runner_#{module_name}.c")
runner_obj = File.join(OBJ_DIR, "runner_#{module_name}.o")
test_bin = File.join(TEST_BIN_DIR, module_name)
test_results = File.join(TEST_BIN_DIR, module_name + '.result')
test_results = File.join(TEST_BIN_DIR, module_name + '.testresult')
cfg = {
src: test,
@@ -180,7 +180,7 @@ File.open(TEST_MAKEFILE, "w") do |mkfile|
mkfile.puts ""
# Create target to run all tests
mkfile.puts "test: #{test_targets.map{|t| t + '.result'}.join(' ')} test_summary"
mkfile.puts "test: #{test_targets.map{|t| t + '.testresult'}.join(' ')} test_summary"
mkfile.puts ""
end
+1 -1
View File
@@ -7,7 +7,7 @@ begin
build_dir = ENV.fetch('BUILD_DIR', './build')
test_build_dir = ENV.fetch('TEST_BUILD_DIR', File.join(build_dir, 'test'))
results = Dir["#{test_build_dir}/*.result"]
results = Dir["#{test_build_dir}/*.testresult"]
parser = UnityTestSummary.new
parser.targets = results
parser.run