提交 7c3d8290 编写于 作者: M Mark VanderVoord

Protect against files without any test output

上级 d86a44b5
......@@ -97,7 +97,11 @@ class UnityToJUnit
#use line[0] from the test output to get the test_file path and name
test_file_str = lines[0].gsub("\\","/")
test_file_str = test_file_str.split(":")
test_file = test_file_str[0] + ':' + test_file_str[1]
test_file = if (test_file_str.length < 2)
result_file
else
test_file_str[0] + ':' + test_file_str[1]
end
result_output[:source][:path] = File.dirname(test_file)
result_output[:source][:file] = File.basename(test_file)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册