[CI] Fix dv scripts
diff --git a/.github/scripts/dv/run-dv-wrapper.sh b/.github/scripts/dv/run-dv-wrapper.sh
old mode 100644
new mode 100755
index f51560a..3c53d56
--- a/.github/scripts/dv/run-dv-wrapper.sh
+++ b/.github/scripts/dv/run-dv-wrapper.sh
@@ -27,16 +27,15 @@
if [ ! -d $TARGET_PATH ]
then
- echo "Directory /path/to/dir DOES NOT exists."
+ echo "Directory target /path/to/dir DOES NOT exists."
exit 9999
fi
cd ..
-export PDK_ROOT=$(pwd)/pdks
if [ ! -d $PDK_ROOT ]
then
- echo "Directory /path/to/dir DOES NOT exists."
+ echo "Directory pdk /path/to/dir DOES NOT exists."
exit 9999
fi
@@ -49,12 +48,12 @@
for id in "${DV_TEST_IDS[@]}"
do
- docker run -v $TARGET_PATH:$TARGET_PATH -v $PDK_PATH:$PDK_PATH \
+ docker run -v $TARGET_PATH:$TARGET_PATH -v $PDK_ROOT:$PDK_ROOT \
-v $CARAVEL_ROOT:$CARAVEL_ROOT \
- -e TARGET_PATH=$TARGET_PATH -e PDK_PATH=$PDK_PATH \
+ -e TARGET_PATH=$TARGET_PATH -e PDK_ROOT=$PDK_ROOT \
-e CARAVEL_ROOT=$CARAVEL_ROOT \
-u $(id -u $USER):$(id -g $USER) efabless/dv_setup:latest \
- bash -c "bash $TARGET_PATH/.github/scripts/dv/run-dv.sh $PDK_PATH $DV_PATH $id $SIM_MODE"
+ bash -c "bash $TARGET_PATH/.github/scripts/dv/run-dv.sh $PDK_ROOT $DV_PATH $id $SIM_MODE"
echo "DONE!"
diff --git a/.github/scripts/dv/run-dv.sh b/.github/scripts/dv/run-dv.sh
old mode 100644
new mode 100755
index 125cf3c..53b7e96
--- a/.github/scripts/dv/run-dv.sh
+++ b/.github/scripts/dv/run-dv.sh
@@ -1,4 +1,4 @@
-PDK_PATH=$1
+PDK_ROOT=$1
DV_PATH=$2
DV_TEST_ID=$3
SIM_MODE=$4