Skip to contentSkip to conversation

buildoptions.py: fix test_arch_work_dir_and_export_source

PATCH New Chen Qi 1 participant 2 messages Jun 17, 2019

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover buildoptions.py: fix test_arch_work_dir_and_export_source

*** BLURB HERE ***
The following changes since commit 27d60c5a812774f0e5c43161e5b514c4aebdf301:

gstreamer1.0-libav: disable API documentation (2019-06-15 13:46:38 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/oeqa-buildoptions
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/oeqa-buildoptions

Chen Qi (1):
buildoptions.py: fix test_arch_work_dir_and_export_source

 meta/lib/oeqa/selftest/cases/buildoptions.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 buildoptions.py: fix test_arch_work_dir_and_export_source

If multilib is enabled, allarch is actually disabled. So take this into consideration in this test case, using /*/ instead of /allarch*/.

Also, use xcursor-transparent-theme* instead of xcursor* for more accurate match.

---
 meta/lib/oeqa/selftest/cases/buildoptions.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta/lib/oeqa/selftest/cases/buildoptions.py +5 -5
index 3ad65b4..51b948c 100644
@@ -154,12 +154,12 @@ class ArchiverTest(OESelftestTestCase):
         """
         self.write_config("INHERIT += \"archiver\"\nARCHIVER_MODE[src] = \"original\"\nARCHIVER_MODE[srpm] = \"1\"")
         res = bitbake("xcursor-transparent-theme", ignore_status=True)
-        self.assertEqual(res.status, 0, "\nCouldn't build xcursortransparenttheme.\nbitbake output %s" % res.output)
+        self.assertEqual(res.status, 0, "\nCouldn't build xcursor-transparent-theme.\nbitbake output %s" % res.output)
         deploy_dir_src = get_bb_var('DEPLOY_DIR_SRC')
-        pkgs_path = g.glob(str(deploy_dir_src) + "/allarch*/xcurs*")
-        src_file_glob = str(pkgs_path[0]) + "/xcursor*.src.rpm"
-        tar_file_glob = str(pkgs_path[0]) + "/xcursor*.tar.gz"
-        self.assertTrue((g.glob(src_file_glob) and g.glob(tar_file_glob)), "Couldn't find .src.rpm and .tar.gz files under %s/allarch*/xcursor*" % deploy_dir_src)
+        pkgs_path = g.glob(str(deploy_dir_src) + "/*/xcursor-transparent-theme*")
+        src_file_glob = str(pkgs_path[0]) + "/xcursor-transparent-theme*.src.rpm"
+        tar_file_glob = str(pkgs_path[0]) + "/xcursor-transparent-theme*.tar.gz"
+        self.assertTrue((g.glob(src_file_glob) and g.glob(tar_file_glob)), "Couldn't find .src.rpm and .tar.gz files under %s/*/xcursor-transparent-theme*" % deploy_dir_src)
 
 class ToolchainOptions(OESelftestTestCase):
 
Signature · 1 line
1.9.1