public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around.
@ 2009-06-12 16:13 Lucas Meneghel Rodrigues
  2009-06-12 16:13 ` [KVM-AUTOTEST PATCH 2/4] kvm test config sample: change control file names for the autotest tests Lucas Meneghel Rodrigues
  2009-06-13  9:00 ` [Autotest] [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around Michael Goldish
  0 siblings, 2 replies; 8+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-06-12 16:13 UTC (permalink / raw)
  To: autotest; +Cc: kvm, Lucas Meneghel Rodrigues

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/kvm_config.py |   14 +++++++-------
 client/tests/kvm/kvm_tests.py  |   12 ++++++------
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py
index 95eefcb..343c67d 100755
--- a/client/tests/kvm/kvm_config.py
+++ b/client/tests/kvm/kvm_config.py
@@ -302,9 +302,9 @@ class config:
             # Found an operator?
             if op_found:
                 if self.debug and not restricted:
-                    self.__debug_print(indented_line,
-                                     "Parsing operator (%d dicts in current "
-                                     "context)" % len_list)
+                    self.__debug_print(indented_line, ("Parsing operator "
+                                                       "(%d dicts in current "
+                                                       "context)" % len_list))
                 (left, value) = self.split_and_strip(line, op_found)
                 filters_and_key = self.split_and_strip(left, ":")
                 filters = filters_and_key[:-1]
@@ -349,10 +349,10 @@ class config:
                                 break
                 list = filtered_list
                 if self.debug and not restricted:
-                    self.__debug_print(indented_line,
-                                     "Parsing no/only (%d dicts in current "
-                                     "context, %d remain)" %
-                                     (len_list, len(list)))
+                    self.__debug_print(indented_line, ("Parsing no/only "
+                                                       "(%d dicts in current "
+                                                       "context, %d remain)" %
+                                                       (len_list, len(list))))
 
             # Parse 'variants'
             elif line == "variants:":
diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py
index 54d2a7a..4b87a76 100644
--- a/client/tests/kvm/kvm_tests.py
+++ b/client/tests/kvm/kvm_tests.py
@@ -327,16 +327,16 @@ def run_autotest(test, params, env):
         logging.info(str(result))
         if result[1] == "FAIL":
             status_fail = True
-            message_fail = "Test '%s' ended with FAIL"
-            " (info: '%s')" % (result[0], result[3])
+            message_fail = ("Test '%s' ended with FAIL "
+                            "(info: '%s')" % (result[0], result[3]))
         if result[1] == "ERROR":
             status_error = True
-            message_error = "Test '%s' ended with ERROR"
-            " (info: '%s')" % (result[0], result[3])
+            message_error = ("Test '%s' ended with ERROR "
+                             "(info: '%s')" % (result[0], result[3]))
         if result[1] == "ABORT":
             status_error = True
-            message_error = "Test '%s' ended with ABORT"
-            " (info: '%s')" % (result[0], result[3])
+            message_error = ("Test '%s' ended with ABORT "
+                             "(info: '%s')" % (result[0], result[3]))
 
     # Copy test results to the local bindir/guest_results
     logging.info("Copying results back from guest...")
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [KVM-AUTOTEST PATCH 2/4] kvm test config sample: change control file names for the autotest tests
  2009-06-12 16:13 [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around Lucas Meneghel Rodrigues
@ 2009-06-12 16:13 ` Lucas Meneghel Rodrigues
  2009-06-12 16:13   ` [KVM-AUTOTEST PATCH 3/4] kvm_tests: Use autotest log files to scan results Lucas Meneghel Rodrigues
  2009-06-13  9:00 ` [Autotest] [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around Michael Goldish
  1 sibling, 1 reply; 8+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-06-12 16:13 UTC (permalink / raw)
  To: autotest; +Cc: kvm, Lucas Meneghel Rodrigues

Changing the names of the control files being used on the autotest test

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/kvm_tests.cfg.sample |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/client/tests/kvm/kvm_tests.cfg.sample b/client/tests/kvm/kvm_tests.cfg.sample
index c73da7c..2c0b321 100644
--- a/client/tests/kvm/kvm_tests.cfg.sample
+++ b/client/tests/kvm/kvm_tests.cfg.sample
@@ -67,16 +67,17 @@ variants:
     - autotest:     install setup
         type = autotest
         test_timeout = 720
-        test_control_file = control
         variants:
             - sleeptest:
                 test_name = sleeptest
                 test_timeout = 30
+                test_control_file = sleeptest.control
             - dbench:
                 test_name = dbench
-                test_control_file = control.60
+                test_control_file = dbench.control
             - bonnie:
                 test_name = bonnie
+                test_control_file = bonnie.control
 
     - linux_s3:      install setup
         type = linux_s3
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [KVM-AUTOTEST PATCH 3/4] kvm_tests: Use autotest log files to scan results
  2009-06-12 16:13 ` [KVM-AUTOTEST PATCH 2/4] kvm test config sample: change control file names for the autotest tests Lucas Meneghel Rodrigues
@ 2009-06-12 16:13   ` Lucas Meneghel Rodrigues
  2009-06-12 16:13     ` [KVM-AUTOTEST PATCH 4/4] Adding control files dir to kvm test Lucas Meneghel Rodrigues
  0 siblings, 1 reply; 8+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-06-12 16:13 UTC (permalink / raw)
  To: autotest; +Cc: kvm, Lucas Meneghel Rodrigues

The 'autotest' kvm subtest was relying on autotest output, that
now has the logging line prefixes. The logging line prefixes
breaks the results parser, so we would either have to make the
parser to strip the logging prefixes or read autotest status
files generated on the results directory. The later is a simpler
approach, so this patch implements it.

Also, copy control files defined inside
self.bindir/autotest_control directory to the guest. This way
we can create more complex control files to run in guests
without having to touch other tests directories.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/kvm_tests.py |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py
index 4b87a76..62e5161 100644
--- a/client/tests/kvm/kvm_tests.py
+++ b/client/tests/kvm/kvm_tests.py
@@ -296,20 +296,30 @@ def run_autotest(test, params, env):
     if status != 0:
         raise error.TestFail("Could not extract %s.tar.bz2" % test_name)
 
+    # Cleaning up old remaining results
+    session.sendline("rm -rf autotest/results/*")
+    # Copying the selected control file (located inside
+    # test.bindir/autotest_control to the autotest dir
+    control_file_path = os.path.join(test.bindir, "autotest_control",
+                                     test_control_file)
+    if not vm.scp_to_remote(control_file_path, "autotest/control"):
+        raise error.TestFail("Could not copy the test control file to guest")
     # Run the test
     logging.info("Running test '%s'..." % test_name)
-    session.sendline("cd autotest/tests/%s" % test_name)
-    session.sendline("rm -f ./%s.state" % test_control_file)
+    session.sendline("cd autotest")
+    session.sendline("rm -f control.state")
     session.read_up_to_prompt()
-    session.sendline("../../bin/autotest ./%s" % test_control_file)
+    session.sendline("bin/autotest control")
     logging.info("---------------- Test output ----------------")
-    match, output = session.read_up_to_prompt(timeout=test_timeout,
-                                              print_func=logging.info)
+    match = session.read_up_to_prompt(timeout=test_timeout,
+                                      print_func=logging.info)[0]
     logging.info("---------------- End of test output ----------------")
     if not match:
         raise error.TestFail("Timeout elapsed while waiting for test to"
                              " complete")
-
+    # Get the results generated by autotest
+    session.sendline("cat results/*/status")
+    output = session.read_up_to_prompt()[1]
     session.close()
 
     # Parse test results
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [KVM-AUTOTEST PATCH 4/4] Adding control files dir to kvm test
  2009-06-12 16:13   ` [KVM-AUTOTEST PATCH 3/4] kvm_tests: Use autotest log files to scan results Lucas Meneghel Rodrigues
@ 2009-06-12 16:13     ` Lucas Meneghel Rodrigues
  2009-06-12 16:18       ` [Autotest] " Martin Bligh
  0 siblings, 1 reply; 8+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-06-12 16:13 UTC (permalink / raw)
  To: autotest; +Cc: kvm, Lucas Meneghel Rodrigues

Adding an autotest_control dir with control files that will be
used on the 'autotest' kvm test, with the original control files
used on the old kvm_runtest_2 directory.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/autotest_control/bonnie.control   |   21 ++++++++++++++++++++
 client/tests/kvm/autotest_control/dbench.control   |   20 +++++++++++++++++++
 .../tests/kvm/autotest_control/sleeptest.control   |   15 ++++++++++++++
 3 files changed, 56 insertions(+), 0 deletions(-)
 create mode 100644 client/tests/kvm/autotest_control/bonnie.control
 create mode 100644 client/tests/kvm/autotest_control/dbench.control
 create mode 100644 client/tests/kvm/autotest_control/sleeptest.control

diff --git a/client/tests/kvm/autotest_control/bonnie.control b/client/tests/kvm/autotest_control/bonnie.control
new file mode 100644
index 0000000..2717a80
--- /dev/null
+++ b/client/tests/kvm/autotest_control/bonnie.control
@@ -0,0 +1,21 @@
+AUTHOR = "Martin Bligh <mbligh@google.com>"
+NAME = "bonnie"
+TIME = "MEDIUM"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+TEST_TYPE = "client"
+DOC = """\
+Bonnie is a benchmark which measures the performance of Unix file system
+operations. Bonnie is concerned with identifying bottlenecks; the name is a
+tribute to Bonnie Raitt, who knows how to use one.
+
+For more info, see http://www.textuality.com/bonnie/
+
+This benchmark configuration run generates sustained write traffic
+of 35-50MB/s of .1MB writes to just one disk.  It appears to have a
+sequential and a random workload. It gives profile measurements for:
+throughput, %CPU rand seeks per second. Not sure if the the CPU numbers
+are trustworthy.
+"""
+
+job.run_test('bonnie')
diff --git a/client/tests/kvm/autotest_control/dbench.control b/client/tests/kvm/autotest_control/dbench.control
new file mode 100644
index 0000000..7fb8a37
--- /dev/null
+++ b/client/tests/kvm/autotest_control/dbench.control
@@ -0,0 +1,20 @@
+TIME="SHORT"
+AUTHOR = "Martin Bligh <mbligh@google.com>"
+DOC = """
+dbench is one of our standard kernel stress tests.  It produces filesystem
+load like netbench originally did, but involves no network system calls.
+Its results include throughput rates, which can be used for performance
+analysis.
+
+More information on dbench can be found here:
+http://samba.org/ftp/tridge/dbench/README
+
+Currently it needs to be updated in its configuration. It is a great test for
+the higher level I/O systems but barely touches the disk right now.
+"""
+NAME = 'dbench'
+TEST_CLASS = 'kernel'
+TEST_CATEGORY = 'Functional'
+TEST_TYPE = 'client'
+
+job.run_test('dbench', seconds=60)
diff --git a/client/tests/kvm/autotest_control/sleeptest.control b/client/tests/kvm/autotest_control/sleeptest.control
new file mode 100644
index 0000000..725ae81
--- /dev/null
+++ b/client/tests/kvm/autotest_control/sleeptest.control
@@ -0,0 +1,15 @@
+AUTHOR = "Autotest Team"
+NAME = "Sleeptest"
+TIME = "SHORT"
+TEST_CATEGORY = "Functional"
+TEST_CLASS = "General"
+TEST_TYPE = "client"
+
+DOC = """
+This test simply sleeps for 1 second by default.  It's a good way to test
+profilers and double check that autotest is working.
+The seconds argument can also be modified to make the machine sleep for as
+long as needed.
+"""
+
+job.run_test('sleeptest', seconds = 1)
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [Autotest] [KVM-AUTOTEST PATCH 4/4] Adding control files dir to kvm test
  2009-06-12 16:13     ` [KVM-AUTOTEST PATCH 4/4] Adding control files dir to kvm test Lucas Meneghel Rodrigues
@ 2009-06-12 16:18       ` Martin Bligh
  2009-06-12 16:35         ` Lucas Meneghel Rodrigues
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Bligh @ 2009-06-12 16:18 UTC (permalink / raw)
  To: Lucas Meneghel Rodrigues; +Cc: autotest, kvm

That seems very strange ... why do you have to duplicate the existing
control files?

On Fri, Jun 12, 2009 at 9:13 AM, Lucas Meneghel Rodrigues
<lmr@redhat.com> wrote:
> Adding an autotest_control dir with control files that will be
> used on the 'autotest' kvm test, with the original control files
> used on the old kvm_runtest_2 directory.
>
> Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> ---
>  client/tests/kvm/autotest_control/bonnie.control   |   21 ++++++++++++++++++++
>  client/tests/kvm/autotest_control/dbench.control   |   20 +++++++++++++++++++
>  .../tests/kvm/autotest_control/sleeptest.control   |   15 ++++++++++++++
>  3 files changed, 56 insertions(+), 0 deletions(-)
>  create mode 100644 client/tests/kvm/autotest_control/bonnie.control
>  create mode 100644 client/tests/kvm/autotest_control/dbench.control
>  create mode 100644 client/tests/kvm/autotest_control/sleeptest.control
>
> diff --git a/client/tests/kvm/autotest_control/bonnie.control b/client/tests/kvm/autotest_control/bonnie.control
> new file mode 100644
> index 0000000..2717a80
> --- /dev/null
> +++ b/client/tests/kvm/autotest_control/bonnie.control
> @@ -0,0 +1,21 @@
> +AUTHOR = "Martin Bligh <mbligh@google.com>"
> +NAME = "bonnie"
> +TIME = "MEDIUM"
> +TEST_CLASS = "Kernel"
> +TEST_CATEGORY = "Functional"
> +TEST_TYPE = "client"
> +DOC = """\
> +Bonnie is a benchmark which measures the performance of Unix file system
> +operations. Bonnie is concerned with identifying bottlenecks; the name is a
> +tribute to Bonnie Raitt, who knows how to use one.
> +
> +For more info, see http://www.textuality.com/bonnie/
> +
> +This benchmark configuration run generates sustained write traffic
> +of 35-50MB/s of .1MB writes to just one disk.  It appears to have a
> +sequential and a random workload. It gives profile measurements for:
> +throughput, %CPU rand seeks per second. Not sure if the the CPU numbers
> +are trustworthy.
> +"""
> +
> +job.run_test('bonnie')
> diff --git a/client/tests/kvm/autotest_control/dbench.control b/client/tests/kvm/autotest_control/dbench.control
> new file mode 100644
> index 0000000..7fb8a37
> --- /dev/null
> +++ b/client/tests/kvm/autotest_control/dbench.control
> @@ -0,0 +1,20 @@
> +TIME="SHORT"
> +AUTHOR = "Martin Bligh <mbligh@google.com>"
> +DOC = """
> +dbench is one of our standard kernel stress tests.  It produces filesystem
> +load like netbench originally did, but involves no network system calls.
> +Its results include throughput rates, which can be used for performance
> +analysis.
> +
> +More information on dbench can be found here:
> +http://samba.org/ftp/tridge/dbench/README
> +
> +Currently it needs to be updated in its configuration. It is a great test for
> +the higher level I/O systems but barely touches the disk right now.
> +"""
> +NAME = 'dbench'
> +TEST_CLASS = 'kernel'
> +TEST_CATEGORY = 'Functional'
> +TEST_TYPE = 'client'
> +
> +job.run_test('dbench', seconds=60)
> diff --git a/client/tests/kvm/autotest_control/sleeptest.control b/client/tests/kvm/autotest_control/sleeptest.control
> new file mode 100644
> index 0000000..725ae81
> --- /dev/null
> +++ b/client/tests/kvm/autotest_control/sleeptest.control
> @@ -0,0 +1,15 @@
> +AUTHOR = "Autotest Team"
> +NAME = "Sleeptest"
> +TIME = "SHORT"
> +TEST_CATEGORY = "Functional"
> +TEST_CLASS = "General"
> +TEST_TYPE = "client"
> +
> +DOC = """
> +This test simply sleeps for 1 second by default.  It's a good way to test
> +profilers and double check that autotest is working.
> +The seconds argument can also be modified to make the machine sleep for as
> +long as needed.
> +"""
> +
> +job.run_test('sleeptest', seconds = 1)
> --
> 1.6.2.2
>
> _______________________________________________
> Autotest mailing list
> Autotest@test.kernel.org
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Autotest] [KVM-AUTOTEST PATCH 4/4] Adding control files dir to kvm test
  2009-06-12 16:18       ` [Autotest] " Martin Bligh
@ 2009-06-12 16:35         ` Lucas Meneghel Rodrigues
  0 siblings, 0 replies; 8+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-06-12 16:35 UTC (permalink / raw)
  To: Martin Bligh; +Cc: autotest, kvm

On Fri, 2009-06-12 at 09:18 -0700, Martin Bligh wrote:
> That seems very strange ... why do you have to duplicate the existing
> control files?

In particular, in the old kvm autotest tree we used to have a control
file, control.60 inside the dbench directory, that specifies a shorter
(60s) run for dbench (cause the default 600s is too lengthy for the
large amount of tests we run). 

Instead of sending a patch creating it again inside the dbench test, I
figured a separate dir with the control files we are wanting to run on
the guests a better idea, cause we might want to run fancier control
files on guests. Having the user specify the contents of the control
file on our kvm_tests.cfg is also an option, but then we would need to
handle better multi-line contents on our kvm_config configuration
parser.

All in all, in order to get the old functionality OK I thought having
this extra dir would be the best option.

> On Fri, Jun 12, 2009 at 9:13 AM, Lucas Meneghel Rodrigues
> <lmr@redhat.com> wrote:
> > Adding an autotest_control dir with control files that will be
> > used on the 'autotest' kvm test, with the original control files
> > used on the old kvm_runtest_2 directory.
> >
> > Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> > ---
> >  client/tests/kvm/autotest_control/bonnie.control   |   21 ++++++++++++++++++++
> >  client/tests/kvm/autotest_control/dbench.control   |   20 +++++++++++++++++++
> >  .../tests/kvm/autotest_control/sleeptest.control   |   15 ++++++++++++++
> >  3 files changed, 56 insertions(+), 0 deletions(-)
> >  create mode 100644 client/tests/kvm/autotest_control/bonnie.control
> >  create mode 100644 client/tests/kvm/autotest_control/dbench.control
> >  create mode 100644 client/tests/kvm/autotest_control/sleeptest.control
> >
> > diff --git a/client/tests/kvm/autotest_control/bonnie.control b/client/tests/kvm/autotest_control/bonnie.control
> > new file mode 100644
> > index 0000000..2717a80
> > --- /dev/null
> > +++ b/client/tests/kvm/autotest_control/bonnie.control
> > @@ -0,0 +1,21 @@
> > +AUTHOR = "Martin Bligh <mbligh@google.com>"
> > +NAME = "bonnie"
> > +TIME = "MEDIUM"
> > +TEST_CLASS = "Kernel"
> > +TEST_CATEGORY = "Functional"
> > +TEST_TYPE = "client"
> > +DOC = """\
> > +Bonnie is a benchmark which measures the performance of Unix file system
> > +operations. Bonnie is concerned with identifying bottlenecks; the name is a
> > +tribute to Bonnie Raitt, who knows how to use one.
> > +
> > +For more info, see http://www.textuality.com/bonnie/
> > +
> > +This benchmark configuration run generates sustained write traffic
> > +of 35-50MB/s of .1MB writes to just one disk.  It appears to have a
> > +sequential and a random workload. It gives profile measurements for:
> > +throughput, %CPU rand seeks per second. Not sure if the the CPU numbers
> > +are trustworthy.
> > +"""
> > +
> > +job.run_test('bonnie')
> > diff --git a/client/tests/kvm/autotest_control/dbench.control b/client/tests/kvm/autotest_control/dbench.control
> > new file mode 100644
> > index 0000000..7fb8a37
> > --- /dev/null
> > +++ b/client/tests/kvm/autotest_control/dbench.control
> > @@ -0,0 +1,20 @@
> > +TIME="SHORT"
> > +AUTHOR = "Martin Bligh <mbligh@google.com>"
> > +DOC = """
> > +dbench is one of our standard kernel stress tests.  It produces filesystem
> > +load like netbench originally did, but involves no network system calls.
> > +Its results include throughput rates, which can be used for performance
> > +analysis.
> > +
> > +More information on dbench can be found here:
> > +http://samba.org/ftp/tridge/dbench/README
> > +
> > +Currently it needs to be updated in its configuration. It is a great test for
> > +the higher level I/O systems but barely touches the disk right now.
> > +"""
> > +NAME = 'dbench'
> > +TEST_CLASS = 'kernel'
> > +TEST_CATEGORY = 'Functional'
> > +TEST_TYPE = 'client'
> > +
> > +job.run_test('dbench', seconds=60)
> > diff --git a/client/tests/kvm/autotest_control/sleeptest.control b/client/tests/kvm/autotest_control/sleeptest.control
> > new file mode 100644
> > index 0000000..725ae81
> > --- /dev/null
> > +++ b/client/tests/kvm/autotest_control/sleeptest.control
> > @@ -0,0 +1,15 @@
> > +AUTHOR = "Autotest Team"
> > +NAME = "Sleeptest"
> > +TIME = "SHORT"
> > +TEST_CATEGORY = "Functional"
> > +TEST_CLASS = "General"
> > +TEST_TYPE = "client"
> > +
> > +DOC = """
> > +This test simply sleeps for 1 second by default.  It's a good way to test
> > +profilers and double check that autotest is working.
> > +The seconds argument can also be modified to make the machine sleep for as
> > +long as needed.
> > +"""
> > +
> > +job.run_test('sleeptest', seconds = 1)
> > --
> > 1.6.2.2
> >
> > _______________________________________________
> > Autotest mailing list
> > Autotest@test.kernel.org
> > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
> >
-- 
Lucas Meneghel Rodrigues
Software Engineer (QE)
Red Hat - Emerging Technologies


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Autotest] [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around.
  2009-06-12 16:13 [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around Lucas Meneghel Rodrigues
  2009-06-12 16:13 ` [KVM-AUTOTEST PATCH 2/4] kvm test config sample: change control file names for the autotest tests Lucas Meneghel Rodrigues
@ 2009-06-13  9:00 ` Michael Goldish
  2009-06-15 20:51   ` Lucas Meneghel Rodrigues
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Goldish @ 2009-06-13  9:00 UTC (permalink / raw)
  To: Lucas Meneghel Rodrigues; +Cc: kvm, autotest


----- "Lucas Meneghel Rodrigues" <lmr@redhat.com> wrote:

> Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> ---
>  client/tests/kvm/kvm_config.py |   14 +++++++-------
>  client/tests/kvm/kvm_tests.py  |   12 ++++++------
>  2 files changed, 13 insertions(+), 13 deletions(-)
> 
> diff --git a/client/tests/kvm/kvm_config.py
> b/client/tests/kvm/kvm_config.py
> index 95eefcb..343c67d 100755
> --- a/client/tests/kvm/kvm_config.py
> +++ b/client/tests/kvm/kvm_config.py
> @@ -302,9 +302,9 @@ class config:
>              # Found an operator?
>              if op_found:
>                  if self.debug and not restricted:
> -                    self.__debug_print(indented_line,
> -                                     "Parsing operator (%d dicts in current "
> -                                     "context)" % len_list)
> +                    self.__debug_print(indented_line, ("Parsing operator "
                                                         ^
I don't think we need the parentheses opened here        |
because the parameters are already enclosed in parentheses.

> +                                                       "(%d dicts in current "
> +                                                       "context)" % len_list))
>                  (left, value) = self.split_and_strip(line, op_found)
>                  filters_and_key = self.split_and_strip(left, ":")
>                  filters = filters_and_key[:-1]
> @@ -349,10 +349,10 @@ class config:
>                                  break
>                  list = filtered_list
>                  if self.debug and not restricted:
> -                    self.__debug_print(indented_line,
> -                                     "Parsing no/only (%d dicts in current "
> -                                     "context, %d remain)" %
> -                                     (len_list, len(list)))
> +                    self.__debug_print(indented_line, ("Parsing no/only "
                                                         ^
I don't think we need the parentheses opened here        |

> +                                                       "(%d dicts in current "
> +                                                       "context, %d remain)" %
> +                                                       (len_list, len(list))))
>  
>              # Parse 'variants'
>              elif line == "variants:":
> diff --git a/client/tests/kvm/kvm_tests.py
> b/client/tests/kvm/kvm_tests.py
> index 54d2a7a..4b87a76 100644
> --- a/client/tests/kvm/kvm_tests.py
> +++ b/client/tests/kvm/kvm_tests.py
> @@ -327,16 +327,16 @@ def run_autotest(test, params, env):
>          logging.info(str(result))
>          if result[1] == "FAIL":
>              status_fail = True
> -            message_fail = "Test '%s' ended with FAIL"
> -            " (info: '%s')" % (result[0], result[3])
> +            message_fail = ("Test '%s' ended with FAIL "
> +                            "(info: '%s')" % (result[0], result[3]))
>          if result[1] == "ERROR":
>              status_error = True
> -            message_error = "Test '%s' ended with ERROR"
> -            " (info: '%s')" % (result[0], result[3])
> +            message_error = ("Test '%s' ended with ERROR "
> +                             "(info: '%s')" % (result[0], result[3]))
>          if result[1] == "ABORT":
>              status_error = True
> -            message_error = "Test '%s' ended with ABORT"
> -            " (info: '%s')" % (result[0], result[3])
> +            message_error = ("Test '%s' ended with ABORT "
> +                             "(info: '%s')" % (result[0], result[3]))
>  
>      # Copy test results to the local bindir/guest_results
>      logging.info("Copying results back from guest...")
> -- 
> 1.6.2.2
> 
> _______________________________________________
> Autotest mailing list
> Autotest@test.kernel.org
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Autotest] [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around.
  2009-06-13  9:00 ` [Autotest] [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around Michael Goldish
@ 2009-06-15 20:51   ` Lucas Meneghel Rodrigues
  0 siblings, 0 replies; 8+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-06-15 20:51 UTC (permalink / raw)
  To: Michael Goldish; +Cc: kvm, autotest

On Sat, 2009-06-13 at 05:00 -0400, Michael Goldish wrote:
> ----- "Lucas Meneghel Rodrigues" <lmr@redhat.com> wrote:
> 
> > Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> > ---
> >  client/tests/kvm/kvm_config.py |   14 +++++++-------
> >  client/tests/kvm/kvm_tests.py  |   12 ++++++------
> >  2 files changed, 13 insertions(+), 13 deletions(-)
> > 
> > diff --git a/client/tests/kvm/kvm_config.py
> > b/client/tests/kvm/kvm_config.py
> > index 95eefcb..343c67d 100755
> > --- a/client/tests/kvm/kvm_config.py
> > +++ b/client/tests/kvm/kvm_config.py
> > @@ -302,9 +302,9 @@ class config:
> >              # Found an operator?
> >              if op_found:
> >                  if self.debug and not restricted:
> > -                    self.__debug_print(indented_line,
> > -                                     "Parsing operator (%d dicts in current "
> > -                                     "context)" % len_list)
> > +                    self.__debug_print(indented_line, ("Parsing operator "
>                                                          ^
> I don't think we need the parentheses opened here        |
> because the parameters are already enclosed in parentheses.

Ooops, you are right, I am going to apply the patch minus these two
changes. Thanks!

> 
> > +                                                       "(%d dicts in current "
> > +                                                       "context)" % len_list))
> >                  (left, value) = self.split_and_strip(line, op_found)
> >                  filters_and_key = self.split_and_strip(left, ":")
> >                  filters = filters_and_key[:-1]
> > @@ -349,10 +349,10 @@ class config:
> >                                  break
> >                  list = filtered_list
> >                  if self.debug and not restricted:
> > -                    self.__debug_print(indented_line,
> > -                                     "Parsing no/only (%d dicts in current "
> > -                                     "context, %d remain)" %
> > -                                     (len_list, len(list)))
> > +                    self.__debug_print(indented_line, ("Parsing no/only "
>                                                          ^
> I don't think we need the parentheses opened here        |
> 
> > +                                                       "(%d dicts in current "
> > +                                                       "context, %d remain)" %
> > +                                                       (len_list, len(list))))
> >  
> >              # Parse 'variants'
> >              elif line == "variants:":
> > diff --git a/client/tests/kvm/kvm_tests.py
> > b/client/tests/kvm/kvm_tests.py
> > index 54d2a7a..4b87a76 100644
> > --- a/client/tests/kvm/kvm_tests.py
> > +++ b/client/tests/kvm/kvm_tests.py
> > @@ -327,16 +327,16 @@ def run_autotest(test, params, env):
> >          logging.info(str(result))
> >          if result[1] == "FAIL":
> >              status_fail = True
> > -            message_fail = "Test '%s' ended with FAIL"
> > -            " (info: '%s')" % (result[0], result[3])
> > +            message_fail = ("Test '%s' ended with FAIL "
> > +                            "(info: '%s')" % (result[0], result[3]))
> >          if result[1] == "ERROR":
> >              status_error = True
> > -            message_error = "Test '%s' ended with ERROR"
> > -            " (info: '%s')" % (result[0], result[3])
> > +            message_error = ("Test '%s' ended with ERROR "
> > +                             "(info: '%s')" % (result[0], result[3]))
> >          if result[1] == "ABORT":
> >              status_error = True
> > -            message_error = "Test '%s' ended with ABORT"
> > -            " (info: '%s')" % (result[0], result[3])
> > +            message_error = ("Test '%s' ended with ABORT "
> > +                             "(info: '%s')" % (result[0], result[3]))
> >  
> >      # Copy test results to the local bindir/guest_results
> >      logging.info("Copying results back from guest...")
> > -- 
> > 1.6.2.2
> > 
> > _______________________________________________
> > Autotest mailing list
> > Autotest@test.kernel.org
> > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
-- 
Lucas Meneghel Rodrigues
Software Engineer (QE)
Red Hat - Emerging Technologies


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-15 20:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 16:13 [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around Lucas Meneghel Rodrigues
2009-06-12 16:13 ` [KVM-AUTOTEST PATCH 2/4] kvm test config sample: change control file names for the autotest tests Lucas Meneghel Rodrigues
2009-06-12 16:13   ` [KVM-AUTOTEST PATCH 3/4] kvm_tests: Use autotest log files to scan results Lucas Meneghel Rodrigues
2009-06-12 16:13     ` [KVM-AUTOTEST PATCH 4/4] Adding control files dir to kvm test Lucas Meneghel Rodrigues
2009-06-12 16:18       ` [Autotest] " Martin Bligh
2009-06-12 16:35         ` Lucas Meneghel Rodrigues
2009-06-13  9:00 ` [Autotest] [KVM-AUTOTEST PATCH 1/4] kvm test: Fix more incorrect long line breaks lying around Michael Goldish
2009-06-15 20:51   ` Lucas Meneghel Rodrigues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox