diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-10-22 18:18:25 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-24 15:18:54 +0100 |
| commit | 13db230e423fbc89e2dc9c73e58556a277a06e5f (patch) | |
| tree | d2770b4bd1b2aa0d5e86067000dfb3d0eba38a13 /meta/lib | |
| parent | 3fa461da7c43a945542294f0aaba4824deb60810 (diff) | |
| download | poky-13db230e423fbc89e2dc9c73e58556a277a06e5f.tar.gz | |
oeqa/selftest/rust: skip on all MIPS platforms
As per "The rustc book"[1], mips*-unknown-linux-* are "tier 3" targets:
Tier 3 targets are those which the Rust codebase has support for, but
which the Rust project does not build or test automatically, so they
may or may not work.
We already skip qemumips in this selftest, but we're now also seeing
failures with qemumips64 so refactor the test to skip all machines where
the architecture is mips or mips64.
[1] https://doc.rust-lang.org/nightly/rustc/platform-support.html
(From OE-Core rev: 177e268811c04260923ac4b16fa047315304add0)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/rust.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py index 88d7bb9518..fab6267b15 100644 --- a/meta/lib/oeqa/selftest/cases/rust.py +++ b/meta/lib/oeqa/selftest/cases/rust.py | |||
| @@ -3,6 +3,7 @@ import os | |||
| 3 | import subprocess | 3 | import subprocess |
| 4 | import time | 4 | import time |
| 5 | from oeqa.core.decorator import OETestTag | 5 | from oeqa.core.decorator import OETestTag |
| 6 | from oeqa.core.decorator.data import skipIfArch | ||
| 6 | from oeqa.core.case import OEPTestResultTestCase | 7 | from oeqa.core.case import OEPTestResultTestCase |
| 7 | from oeqa.selftest.case import OESelftestTestCase | 8 | from oeqa.selftest.case import OESelftestTestCase |
| 8 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars, runqemu, Command | 9 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars, runqemu, Command |
| @@ -38,15 +39,12 @@ def parse_results(filename): | |||
| 38 | @OETestTag("toolchain-user") | 39 | @OETestTag("toolchain-user") |
| 39 | @OETestTag("runqemu") | 40 | @OETestTag("runqemu") |
| 40 | class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): | 41 | class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): |
| 42 | |||
| 43 | @skipIfArch(['mips', 'mips64']) | ||
| 41 | def test_rust(self, *args, **kwargs): | 44 | def test_rust(self, *args, **kwargs): |
| 42 | # Disable Rust Oe-selftest | 45 | # Disable Rust Oe-selftest |
| 43 | #self.skipTest("The Rust Oe-selftest is disabled.") | 46 | #self.skipTest("The Rust Oe-selftest is disabled.") |
| 44 | 47 | ||
| 45 | # Skip mips32 target since it is unstable with rust tests | ||
| 46 | machine = get_bb_var('MACHINE') | ||
| 47 | if machine == "qemumips": | ||
| 48 | self.skipTest("The mips32 target is skipped for Rust Oe-selftest.") | ||
| 49 | |||
| 50 | # build remote-test-server before image build | 48 | # build remote-test-server before image build |
| 51 | recipe = "rust" | 49 | recipe = "rust" |
| 52 | start_time = time.time() | 50 | start_time = time.time() |
