]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime: smart: fix adding channels
authorStefan Stanacar <stefanx.stanacar@intel.com>
Wed, 29 Jan 2014 12:30:57 +0000 (14:30 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jan 2014 17:36:31 +0000 (17:36 +0000)
Without this it won't add core2-64 and similar channels, as the
directory name in deploy_dir/rpm uses _ not - as the package arch.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/smart.py

index 7ef4b0e64988c6085d06a81d3410afd4fefb2e88..8299bf373a0044c2f279e78712b1ed08b243c166 100644 (file)
@@ -59,7 +59,7 @@ class SmartRepoTest(SmartTest):
     def test_smart_channel_add(self):
         image_pkgtype = self.tc.d.getVar('IMAGE_PKGTYPE', True)
         deploy_url = 'http://%s:%s/%s' %(self.target.server_ip, self.repo_server.port, image_pkgtype)
-        pkgarchs = self.tc.d.getVar('PACKAGE_ARCHS', True)
+        pkgarchs = self.tc.d.getVar('PACKAGE_ARCHS', True).replace("-","_").split()
         for arch in os.listdir('%s/%s' % (self.repo_server.root_dir, image_pkgtype)):
             if arch in pkgarchs:
                 self.smart('channel -y --add {a} type=rpm-md baseurl={u}/{a}'.format(a=arch, u=deploy_url))