coverity/local_test: fix copy error

coverity/ is a symlink to ../scripts/ in this git
repository. The 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/' and '/tmp/coverity/' are the same file

Remove the symlink to avoid this error.

Change-Id: I081871e6e06547a90879bc4aa08ac2b5c5ddaeef
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/
cp "$SCRIPT_DIR"/* /tmp/coverity
ln -sf "$SCRIPT_DIR/../scripts/" /tmp/coverity/