2012-04-08 51 views
0

我从使用命令行运行常用的测试:二郎命令测试失败写“coverlog”

$ 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}]}]} 
+0

你确定过程'<0.318.0>'还活着吗?要发送的格式信息在哪里?手动使用这些参数手动执行'io:format'调用,'<0.318.0>'除外,都可以使用。 – rvirding 2013-05-21 18:43:07

回答

0

你确定你有类似〜s的格式模式吗?

你能提供一些实际上有这个io格式的代码吗?