Skip to content

Commit

Permalink
template: disable template unit test on arm
Browse files Browse the repository at this point in the history
Template is broken on arm. here we disable the template unit test
temporarily.

Fixes: #2809
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
  • Loading branch information
jongwu authored and bergwolf committed Nov 5, 2021
1 parent 7cb650a commit 0366f6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/virtcontainers/factory/template/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"context"
"fmt"
"os"
"runtime"
"testing"
"time"

Expand All @@ -22,7 +23,8 @@ import (
const testDisabledAsNonRoot = "Test disabled as requires root privileges"

func TestTemplateFactory(t *testing.T) {
if os.Geteuid() != 0 {
// template is broken on arm64, so, temporarily disable it on arm64
if runtime.GOARCH == "arm64" || os.Geteuid() != 0 {
t.Skip(testDisabledAsNonRoot)
}

Expand Down

0 comments on commit 0366f6e

Please sign in to comment.