From 9d24d347866e7c04b35bbe41d7841107fc920b48 Mon Sep 17 00:00:00 2001 From: Maciej Borzecki Date: Mon, 9 May 2022 13:37:10 +0200 Subject: [PATCH] tests/unit/go: use a fork of libseccomp on 14.04 Signed-off-by: Maciej Borzecki --- tests/unit/go/task.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/go/task.yaml b/tests/unit/go/task.yaml index d5e4ded60cf..ce15e5f9a7a 100644 --- a/tests/unit/go/task.yaml +++ b/tests/unit/go/task.yaml @@ -63,10 +63,13 @@ execute: | ./run-checks --unit" fi else + # on 14.04 we need to use a fork of libseccomp-golang + sed -i 's|\"github.com/seccomp/libseccomp-golang\"|\"github.com/mvo5/libseccomp-golang\"|' \ + /tmp/static-unit-tests/src/github.com/snapcore/snapd/cmd/snap-seccomp/*.go + if [ "$VARIANT" = "static" ] ; then # 14.04 only su -l -c "cd /tmp/static-unit-tests/src/github.com/snapcore/snapd && \ - sed -i 's|\"github.com/seccomp/libseccomp-golang\"|\"github.com/mvo5/libseccomp-golang\"|' cmd/snap-seccomp/*.go && \ PATH=$PATH \ GOPATH=/tmp/static-unit-tests \ ${skip:-} \