diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-04 09:29:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-04 09:29:02 +0100 |
commit | c5230b459fb4ef486f657f5633b67ca925981f03 (patch) | |
tree | aaac1c55b2cefa08cba0557f960d225f95b6c07f /meta/lib/oeqa | |
parent | 544a96255203a6779d1f0022d003c6680f330511 (diff) | |
download | openembedded-core-c5230b459fb4ef486f657f5633b67ca925981f03.tar.gz openembedded-core-c5230b459fb4ef486f657f5633b67ca925981f03.tar.bz2 openembedded-core-c5230b459fb4ef486f657f5633b67ca925981f03.zip |
sstatetests: Update after binutils-cross name change with PN addition
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/sstatetests.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/sstatetests.py b/meta/lib/oeqa/selftest/sstatetests.py index 35ff28b04a..7d12faaece 100644 --- a/meta/lib/oeqa/selftest/sstatetests.py +++ b/meta/lib/oeqa/selftest/sstatetests.py @@ -29,10 +29,12 @@ class SStateTests(SStateBase): self.assertTrue(not file_tracker , msg="Found sstate files in the wrong place for: %s" % ', '.join(map(str, targets))) def test_sstate_creation_distro_specific_pass(self): - self.run_test_sstate_creation(['binutils-cross', 'binutils-native'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True) + targetarch = get_bb_var('TARGET_ARCH') + self.run_test_sstate_creation(['binutils-cross-'+ targetarch, 'binutils-native'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True) def test_sstate_creation_distro_specific_fail(self): - self.run_test_sstate_creation(['binutils-cross', 'binutils-native'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True, should_pass=False) + targetarch = get_bb_var('TARGET_ARCH') + self.run_test_sstate_creation(['binutils-cross-'+ targetarch, 'binutils-native'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True, should_pass=False) def test_sstate_creation_distro_nonspecific_pass(self): self.run_test_sstate_creation(['eglibc-initial'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True) @@ -59,13 +61,15 @@ class SStateTests(SStateBase): self.assertTrue(not tgz_removed, msg="do_cleansstate didn't remove .tgz sstate files for: %s" % ', '.join(map(str, targets))) def test_cleansstate_task_distro_specific_nonspecific(self): - self.run_test_cleansstate_task(['binutils-cross', 'binutils-native', 'eglibc-initial'], distro_specific=True, distro_nonspecific=True, temp_sstate_location=True) + targetarch = get_bb_var('TARGET_ARCH') + self.run_test_cleansstate_task(['binutils-cross-' + targetarch, 'binutils-native', 'eglibc-initial'], distro_specific=True, distro_nonspecific=True, temp_sstate_location=True) def test_cleansstate_task_distro_nonspecific(self): self.run_test_cleansstate_task(['eglibc-initial'], distro_specific=False, distro_nonspecific=True, temp_sstate_location=True) def test_cleansstate_task_distro_specific(self): - self.run_test_cleansstate_task(['binutils-cross', 'binutils-native', 'eglibc-initial'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True) + targetarch = get_bb_var('TARGET_ARCH') + self.run_test_cleansstate_task(['binutils-cross-'+ targetarch, 'binutils-native', 'eglibc-initial'], distro_specific=True, distro_nonspecific=False, temp_sstate_location=True) # Test rebuilding of distro-specific sstate files @@ -95,10 +99,12 @@ class SStateTests(SStateBase): self.assertTrue(created_once == [], msg="The following sstate files ware created only in the second run: %s" % ', '.join(map(str, created_once))) def test_rebuild_distro_specific_sstate_cross_native_targets(self): - self.run_test_rebuild_distro_specific_sstate(['binutils-cross', 'binutils-native'], temp_sstate_location=True) + targetarch = get_bb_var('TARGET_ARCH') + self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + targetarch, 'binutils-native'], temp_sstate_location=True) def test_rebuild_distro_specific_sstate_cross_target(self): - self.run_test_rebuild_distro_specific_sstate(['binutils-cross'], temp_sstate_location=True) + targetarch = get_bb_var('TARGET_ARCH') + self.run_test_rebuild_distro_specific_sstate(['binutils-cross-' + targetarch], temp_sstate_location=True) def test_rebuild_distro_specific_sstate_native_target(self): self.run_test_rebuild_distro_specific_sstate(['binutils-native'], temp_sstate_location=True) |