mirror of https://gerrit.osmocom.org/osmo-ci
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: I081871e6e06547a90879bc4aa08ac2b5c5ddaeefchanges/36/31136/1
parent
2f0de239e6
commit
7bd02257c9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue