On 10/17/2012 04:43 PM, Amos Kong wrote:
We might use 'iterations' parameters to execute one case
repeatedly, this patch makes the filename unique.
Now the RHS files are all save in different dirs so not sure if this needed. And if the case runs paiallelly in one host is the time so unique to separate them?

By the way now virt patches have a new maillist: [email protected] :)

Signed-off-by: Amos Kong <[email protected]>
---
  tests/netperf.py |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/netperf.py b/tests/netperf.py
index bb20ff7..7f55a05 100644
--- a/tests/netperf.py
+++ b/tests/netperf.py
@@ -1,4 +1,4 @@
-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'

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to