From: An Long <lan@suse.com>
To: bfields@fieldses.org
Cc: linux-nfs@vger.kernel.org, An Long <lan@suse.com>
Subject: [PATCH 2/2] server: Fix t.time_taken type for xml_printresults
Date: Tue, 16 Nov 2021 17:56:32 +0800 [thread overview]
Message-ID: <20211116095632.21811-2-lan@suse.com> (raw)
In-Reply-To: <20211116095632.21811-1-lan@suse.com>
t.time_taken does replace in _write_data, but 'float' object has no attribute 'replace'
Signed-off-by: An Long <lan@suse.com>
---
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
next prev parent reply other threads:[~2021-11-16 9:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-16 9:56 [PATCH 1/2] README: Fix typo of install guide An Long
2021-11-16 9:56 ` An Long [this message]
2021-11-16 14:53 ` J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211116095632.21811-2-lan@suse.com \
--to=lan@suse.com \
--cc=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.