runtime: skip unit test that fail regularly on aarch64

There are lots of unit test cases fails regularly on aarch64, including
TestIOCopy, create_tmpfs. Temporarily skip it for now and enable it
after them get fixed.

Fixes: #6194
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu 2023-02-02 13:28:40 +08:00
parent b7dd97cac6
commit 59f104c022
2 changed files with 6 additions and 0 deletions

View File

@ -1291,6 +1291,7 @@ mod tests {
#[tokio::test]
#[serial]
#[cfg(not(target_arch = "aarch64"))]
async fn create_tmpfs() {
skip_if_not_root!();

View File

@ -10,6 +10,7 @@ import (
"io"
"os"
"path/filepath"
"runtime"
"syscall"
"testing"
"time"
@ -96,6 +97,10 @@ func TestNewTtyIOFifoReopen(t *testing.T) {
}
func TestIoCopy(t *testing.T) {
// This test fails on aarch64 regularly, temporarily skip it
if runtime.GOARCH == "arm64" {
t.Skip("Skip TestIoCopy for aarch64")
}
assert := assert.New(t)
ctx := context.TODO()