Code Review
/
iec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Mount results dir for SEBA robot tests
[iec.git]
/
src
/
use_cases
/
seba_on_arm
/
test
/
ponsim
/
install.sh
diff --git
a/src/use_cases/seba_on_arm/test/ponsim/install.sh
b/src/use_cases/seba_on_arm/test/ponsim/install.sh
index
2b4e13e
..
b6baf61
100755
(executable)
--- a/
src/use_cases/seba_on_arm/test/ponsim/install.sh
+++ b/
src/use_cases/seba_on_arm/test/ponsim/install.sh
@@
-3,34
+3,37
@@
set -ex
set -ex
-basepath=$(cd "$(dirname "$0")"; pwd)
+basepath="$(cd "$(dirname "$(readlink -f "$0")")"; pwd)"
+IEC_PATH="$(readlink -f "$(git -C "${basepath}" rev-parse --show-toplevel)")"
+HELM_CHARTS_PATH="src/use_cases/seba_on_arm/src_repo/helm-charts"
-export M=
/tmp/milestones
+export M=
"/tmp/milestones"
export SEBAVALUE=
export SEBAVALUE=
-export WORKSPACE=
${HOME}
+export WORKSPACE=
"${HOME}"
# Using opencord automation-tools from the cord-6.1 maintenance branch
AUTO_TOOLS="${WORKSPACE}/automation-tools"
AUTO_TOOLS_REPO="https://github.com/iecedge/automation-tools.git"
# Using opencord automation-tools from the cord-6.1 maintenance branch
AUTO_TOOLS="${WORKSPACE}/automation-tools"
AUTO_TOOLS_REPO="https://github.com/iecedge/automation-tools.git"
-AUTO_TOOLS_REV=
${AUTO_TOOLS_VER:-cord-7.0-arm64}
+AUTO_TOOLS_REV=
"${AUTO_TOOLS_VER:-cord-7.0-arm64}"
rm -rf "${M}"
mkdir -p "${M}" "${WORKSPACE}/cord/test"
# Update helm-charts submdule needed later
# ignore subproject commit and use latest remote version
rm -rf "${M}"
mkdir -p "${M}" "${WORKSPACE}/cord/test"
# Update helm-charts submdule needed later
# ignore subproject commit and use latest remote version
-git
submodule update --init --remote "${basepath}/../../src_repo/helm-charts
"
+git
-C "${IEC_PATH}" submodule update --init --remote "${HELM_CHARTS_PATH}
"
test -d "${AUTO_TOOLS}" || git clone "${AUTO_TOOLS_REPO}" "${AUTO_TOOLS}"
test -d "${AUTO_TOOLS}" || git clone "${AUTO_TOOLS_REPO}" "${AUTO_TOOLS}"
-(cd "${AUTO_TOOLS}"; git checkout "${AUTO_TOOLS_REV}")
+git -C "${AUTO_TOOLS}" checkout "${AUTO_TOOLS_REV}"
# Faking helm-charts repo clone to our own git submodule if not already there
CHARTS="${WORKSPACE}/cord/helm-charts"
test -d "${CHARTS}" || test -L "${CHARTS}" || \
# Faking helm-charts repo clone to our own git submodule if not already there
CHARTS="${WORKSPACE}/cord/helm-charts"
test -d "${CHARTS}" || test -L "${CHARTS}" || \
- ln -s "${
basepath}/../../src_repo/helm-charts
" "${CHARTS}"
+ ln -s "${
IEC_PATH}/${HELM_CHARTS_PATH}
" "${CHARTS}"
cd "${AUTO_TOOLS}/seba-in-a-box"
cd "${AUTO_TOOLS}/seba-in-a-box"
+# shellcheck source=/dev/null
. env.sh
. env.sh
-# Now calling make, to install PONSim
+# Now calling make, to install
SiaB and
PONSim
make stable
make stable