[PATCH 2/2] server: Fix t.time_taken type for xml_printresults

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



t.time_taken does replace in _write_data, but 'float' object has no attribute 'replace'

Signed-off-by: An Long <lan@xxxxxxxx>
---
 nfs4.1/testmod.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nfs4.1/testmod.py b/nfs4.1/testmod.py
index 47016dd..11e759d 100644
--- a/nfs4.1/testmod.py
+++ b/nfs4.1/testmod.py
@@ -524,7 +524,7 @@ def xml_printresults(tests, file_name, suite='all'):
             testcase.setAttribute("code", t.code)
             testcase.setAttribute("name", t.name)
             testcase.setAttribute("classname", t.suite)
-            testcase.setAttribute("time", t.time_taken)
+            testcase.setAttribute("time", str(t.time_taken))
 
             total_time += t.time_taken
             if t.result == TEST_FAIL:
-- 
2.31.1





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux