Testing Erlang命令测试未能写入";封面日志“;

Testing Erlang命令测试未能写入";封面日志“;,testing,erlang,common-test,Testing,Erlang,Common Test,我正在使用以下命令行运行公共测试: $ run_test -pa ../ebin -spec test.spec.all 并得到以下错误。为什么io:format()调用会得到badarg错误 Testing testdir2.bds1.ep_SUITE: Starting test, 3 test cases ERROR: Could not write normal heading in coverlog. CoverLog: <0.318.0> Reason: {bada

我正在使用以下命令行运行公共测试:

$ run_test -pa ../ebin -spec test.spec.all
并得到以下错误。为什么io:format()调用会得到badarg错误

Testing testdir2.bds1.ep_SUITE: Starting test, 3 test cases


ERROR: Could not write normal heading in coverlog.
CoverLog: <0.318.0>
Reason: {badarg,[{io,format,
                     [<0.318.0>,
                      "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<!-- autogenerated by '~w'. -->\n<html>\n<head><title>Coverage results</title></head>\n<body bgcolor=\"white\" text=\"black\" link=\"blue\" vlink=\"purple\" alink=\"red\">",
                      [test_server_ctrl]],
                     []},
                 {test_server_ctrl,write_coverlog_header,1,
                                   [{file,"test_server_ctrl.erl"},
                                    {line,5731}]},
                 {test_server_ctrl,write_default_coverlog,1,
                                   [{file,"test_server_ctrl.erl"},
                                    {line,5803}]},
                 {test_server_ctrl,stop_extra_tools,1,
                                   [{file,"test_server_ctrl.erl"},
                                    {line,1464}]},
                 {test_server_ctrl,init_tester,9,
                                   [{file,"test_server_ctrl.erl"},
                                    {line,1403}]}]}
Suite testdir2.bds1.ep_SUITE was killed with reason {terminated,
                                                       [{io,format,
                                                         [<0.318.0>,
                                                          "<html><body>\n",[]],
                                                         []},
                                                        {test_server_ctrl,
                                                         write_default_coverlog, 
                                                         1,
                                                         [{file,
                                                           "test_server_ctrl.erl"},
                                                          {line,5803}]},
                                                        {test_server_ctrl,
                                                         stop_extra_tools,1,
                                                         [{file,
                                                           "test_server_ctrl.erl"},
                                                          {line,1464}]},
                                                        {test_server_ctrl,
                                                         init_tester,9,
                                                         [{file,
                                                           "test_server_ctrl.erl"},
                                                          {line,1403}]}]}
测试testdir2.bds1.ep_套件:开始测试,3个测试用例
错误:无法在coverlog中写入正常标题。
封面日志:
原因:{badarg,[{io,格式,
[,
“\n\n\n平均结果\n”,
[测试服务器控制]],
[]},
{test_server_ctrl,write_coverlog_头,1,
[{file,“test_server_ctrl.erl”},
{line,5731}]},
{test_server_ctrl,write_default_coverlog,1,
[{file,“test_server_ctrl.erl”},
{line,5803}]},
{test_server_ctrl,stop_extra_tools,1,
[{file,“test_server_ctrl.erl”},
{line,1464}]},
{test_server_ctrl,init_tester,9,
[{file,“test_server_ctrl.erl”},
{line,1403}]}]}
套件testdir2.bds1.ep_套件因{终止}而被杀死,
[{io,格式,
[,
“\n”,[],
[]},
{test_server_ctrl,
写入\u默认\u覆盖日志,
1.
[{文件,
“test_server_ctrl.erl”},
{line,5803}]},
{test_server_ctrl,
停止使用额外的工具,1,
[{文件,
“test_server_ctrl.erl”},
{line,1464}]},
{test_server_ctrl,
初始测试仪,9,
[{文件,
“test_server_ctrl.erl”},
{line,1403}]}]}

您确定io:format模式中有类似~s的内容吗


您能提供一些实际具有此io:格式的代码吗?

您确定进程
仍处于活动状态吗?格式消息发送到哪里?使用这些参数手动执行
io:format
调用(除了
)是有效的。