coverity/local_test: fix copy error

coverity/common.sh is a symlink to ../scripts/common.sh in this git
repository. The local_test.sh already adjusts the symlink so it points
to the right place after copying related scripts to /tmp/coverity.
However when running the script again, cp would fail with:

cp: '/home/user/code/osmo-dev/src/osmo-ci/coverity/common.sh' and '/tmp/coverity/common.sh' are the same file

Remove the symlink to avoid this error.

Change-Id: I081871e6e06547a90879bc4aa08ac2b5c5ddaeef
changes/36/31136/1
Oliver Smith 2023-02-01 09:17:32 +01:00
parent 2f0de239e6
commit 7bd02257c9
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ export SRC_SKIP_FETCH=1
export SRC_CLEAN=1
mkdir -p /tmp/coverity
rm -f /tmp/coverity/common.sh
cp "$SCRIPT_DIR"/* /tmp/coverity
ln -sf "$SCRIPT_DIR/../scripts/common.sh" /tmp/coverity/common.sh