提交 ca163471 编写于 作者: A Amos Kong 提交者: Lucas Meneghel Rodrigues

virt-test: add a time suffix to result file

We might use 'iterations' parameters to execute one case
repeatedly, this patch makes the filename unique.
Signed-off-by: NAmos Kong <akong@redhat.com>
上级 7e1d5a34
import logging, os, commands, threading, re, glob
import logging, os, commands, threading, re, glob, time
from autotest.client import utils
from autotest.client.shared import ssh_key
from virttest import utils_test, utils_misc, remote
......@@ -124,7 +124,7 @@ def start_test(server, server_ctl, host, client, resultsdir, l=60,
return -1
return thu
fd = open("%s/netperf-result.RHS" % resultsdir, "w")
fd = open("%s/netperf-result.%s.RHS" % (resultsdir, time.time()), "w")
category = 'size|sessions|throughput|%CPU|thr/%CPU|@tx-pkts|@rx-pkts|@tx-byts|@rx-byts|@re-trans|@tx-intr|@rx-intr|@io_exit|@irq_inj|@tpkt/@exit|@rpkt/@irq'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册