Skip to content

Commit

Permalink
tests/unit/go: use a fork of libseccomp on 14.04
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
  • Loading branch information
bboozzoo committed May 9, 2022
1 parent 00ff4cd commit 9d24d34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/go/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:-} \
Expand Down

0 comments on commit 9d24d34

Please sign in to comment.