Looks good, applied, thanks! On Wed, Oct 17, 2012 at 5:43 AM, Amos Kong <[email protected]> wrote: > We might use 'iterations' parameters to execute one case > repeatedly, this patch makes the filename unique. > > 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' > > -- > 1.7.1 > > _______________________________________________ > Autotest-kernel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/autotest-kernel
-- Lucas _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
