From: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] lib/oeqa/runtime: added rpm dependency test
Date: Mon, 21 Oct 2013 15:18:55 +0300 [thread overview]
Message-ID: <52651BAF.9090309@linux.intel.com> (raw)
In-Reply-To: <1382289436-5818-1-git-send-email-alexandrux.palalau@linux.intel.com>
Ignore this one...will send V2
On 10/20/2013 8:17 PM, Alexandru Palalau wrote:
> From: Alexandru Palalau <alexandrux.palalau@intel.com>
>
> Signed-off-by: Alexandru Palalau <alexandrux.palalau@intel.com>
> ---
> meta/lib/oeqa/runtime/rpm.py | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/meta/lib/oeqa/runtime/rpm.py b/meta/lib/oeqa/runtime/rpm.py
> index 154cad5..7b48e4c 100644
> --- a/meta/lib/oeqa/runtime/rpm.py
> +++ b/meta/lib/oeqa/runtime/rpm.py
> @@ -29,15 +29,25 @@ class RpmInstallRemoveTest(oeRuntimeTest):
> def setUpClass(self):
> deploydir = os.path.join(oeRuntimeTest.tc.d.getVar('DEPLOY_DIR', True), "rpm", oeRuntimeTest.tc.d.getVar('TUNE_PKGARCH', True))
> pkgdata = oe.packagedata.read_subpkgdata("rpm-doc", oeRuntimeTest.tc.d)
> + pkgdata2 = oe.packagedata.read_subpkgdata("psplash-default", oeRuntimeTest.tc.d)
> # pick rpm-doc as a test file to get installed, because it's small and it will always be built for standard targets
> testrpmfile = "rpm-doc-%s-%s.%s.rpm" % (pkgdata["PKGV"], pkgdata["PKGR"], oeRuntimeTest.tc.d.getVar('TUNE_PKGARCH', True))
> + testpsplashfile = "psplash-default-%s-%s.%s.rpm" % (pkgdata2["PKGV"], pkgdata2["PKGR"], oeRuntimeTest.tc.d.getVar('TUNE_PKGARCH', True))
> oeRuntimeTest.tc.target.copy_to(os.path.join(deploydir,testrpmfile), "/tmp/rpm-doc.rpm")
> + oeRuntimeTest.tc.target.copy_to(os.path.join(deploydir,testpsplashfile), "/tmp/psplash-default.rpm")
>
> @skipUnlessPassed('test_rpm_help')
> def test_rpm_install(self):
> (status, output) = self.target.run('rpm -ivh /tmp/rpm-doc.rpm')
> self.assertEqual(status, 0, msg="Failed to install rpm-doc package: %s" % output)
>
> + @skipUnlessPassed('test_rpm_help')
> + def test_rpm_install_dependency(self):
> + (status, output) = self.target.run('rpm -e psplash psplash-default')
> + self.assertEqual(status, 0, msg="Failed to remove psplash and psplash-default packages. Output: %s" % output)
> + (status, output) = self.target.run('rpm -ivh /tmp/psplash-default.rpm')
> + self.assertEqual(status, 1, msg="Fail in using rpm install dependency command. Output: %s" % output)
> +
> @skipUnlessPassed('test_rpm_install')
> def test_rpm_remove(self):
> (status,output) = self.target.run('rpm -e rpm-doc')
>
--
Alexandru Palalau
prev parent reply other threads:[~2013-10-21 12:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-20 17:17 [PATCH] lib/oeqa/runtime: added rpm dependency test Alexandru Palalau
2013-10-21 12:18 ` Alexandru Palalau [this message]
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=52651BAF.9090309@linux.intel.com \
--to=alexandrux.palalau@linux.intel.com \
--cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.