public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: "Jiří Župka" <jzupka@redhat.com>
Cc: autotest@test.kernel.org, kvm@vger.kernel.org, kvm-autotest@redhat.com
Subject: Re: [AUTOTEST][PATCH 2/2] Extend base_job_unittest for support subtest change.
Date: Mon, 13 Jun 2011 21:32:34 -0300	[thread overview]
Message-ID: <1308011564.4391.3.camel@justice> (raw)
In-Reply-To: <1307982378-27250-2-git-send-email-jzupka@redhat.com>

On Mon, 2011-06-13 at 18:26 +0200, Jiří Župka wrote:

Applied, thanks!

http://autotest.kernel.org/changeset/5422

> Signed-off-by: Jiří Župka <jzupka@redhat.com>
> ---
>  client/common_lib/base_job_unittest.py |   20 ++++++++++++++++++++
>  1 files changed, 20 insertions(+), 0 deletions(-)
> 
> diff --git a/client/common_lib/base_job_unittest.py b/client/common_lib/base_job_unittest.py
> index 503b62c..b98b01d 100755
> --- a/client/common_lib/base_job_unittest.py
> +++ b/client/common_lib/base_job_unittest.py
> @@ -1334,6 +1334,26 @@ class test_job_tags(unittest.TestCase):
>          self.assertEqual(expected, actual)
>  
> 
> +    def test_subtest_with_master_test_path_and_subdir(self):
> +        self.assertEqual(
> +            ('test9', 'subtestdir/test9.subdirtag', 'subdirtag'),
> +            self.job._build_tagged_test_name('test9',
> +                                             {'master_testpath': 'subtestdir',
> +                                              'subdir_tag': 'subdirtag'}))
> +
> +
> +    def test_subtest_all_tag_components_together_subdir(self):
> +        self.job.use_sequence_number = True
> +        self.job.automatic_test_tag = 'auto'
> +        expected = ('test10.tag._01_.auto',
> +                    'subtestdir/test10.tag._01_.auto.subdir',
> +                    'tag._01_.auto.subdir')
> +        actual = self.job._build_tagged_test_name(
> +            'test10', {'tag': 'tag', 'subdir_tag': 'subdir',
> +                       'master_testpath': 'subtestdir'})
> +        self.assertEqual(expected, actual)
> +
> +
>  class test_make_outputdir(unittest.TestCase):
>      def setUp(self):
>          self.resultdir = tempfile.mkdtemp(suffix='unittest')


_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

  reply	other threads:[~2011-06-14  0:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13 16:26 [AUTOTEST][PATCH 1/2] Subtest return test result Jiří Župka
2011-06-13 16:26 ` [AUTOTEST][PATCH 2/2] Extend base_job_unittest for support subtest change Jiří Župka
2011-06-14  0:32   ` Lucas Meneghel Rodrigues [this message]
2011-06-14  0:31 ` [AUTOTEST][PATCH 1/2] Subtest return test result Lucas Meneghel Rodrigues

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=1308011564.4391.3.camel@justice \
    --to=lmr@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=jzupka@redhat.com \
    --cc=kvm-autotest@redhat.com \
    --cc=kvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox