diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-10-22 18:18:25 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-02-12 06:25:37 -0800 |
| commit | 48ac27c8dca9ffe2c056bd8c73f6d00f2f75f748 (patch) | |
| tree | 177091b7ab10703c845a71eaf5bf6660e89e6d47 /meta | |
| parent | bed811824bd9a0158c3564ed85fc6582df1bdba7 (diff) | |
| download | poky-48ac27c8dca9ffe2c056bd8c73f6d00f2f75f748.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: 681f5ea8d6a5050aebfb1f656da9ba679433e366)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 177e268811c04260923ac4b16fa047315304add0)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
| -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 ad14189c6d..ca98f8c0fd 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() |
