diff --git a/ci/setup.sh b/ci/setup.sh index 705c0aef5f6..2226a20fb33 100755 --- a/ci/setup.sh +++ b/ci/setup.sh @@ -21,7 +21,7 @@ if [ -d ${VERILATOR_BUILD_DIR} ]; then fi if [ -f ${SPIKE_PATH}/spike ]; then - spike_version="$(git -C ${SPIKE_SRC_DIR} log -1 --pretty=tformat:%h -- ${SPIKE_SRC_DIR}/..)" + spike_version="$(git -C ${SPIKE_SRC_DIR} log -1 --pretty=tformat:%h -- ${SPIKE_SRC_DIR}/ )" spike_installed_version="$(${SPIKE_PATH}/spike -v |& cut -d ' ' -f 2)" if [ "$spike_installed_version" != "$spike_version" ]; then rm -rf ${SPIKE_INSTALL_DIR} diff --git a/verif/sim/cva6.py b/verif/sim/cva6.py index 76d2c41d493..dc36528d4fd 100644 --- a/verif/sim/cva6.py +++ b/verif/sim/cva6.py @@ -1056,7 +1056,7 @@ def check_gcc_version(): def check_spike_version(): # Get Spike hash from core-v-verif submodule - spike_hash = subprocess.run('git log -1 --pretty=tformat:%h -- $SPIKE_SRC_DIR/..', capture_output=True, text=True, shell=True, cwd=os.environ.get("SPIKE_SRC_DIR")) + spike_hash = subprocess.run('git log -1 --pretty=tformat:%h -- $SPIKE_SRC_DIR/', capture_output=True, text=True, shell=True, cwd=os.environ.get("SPIKE_SRC_DIR")) spike_version = "1.1.1-dev " + spike_hash.stdout.strip() # Get Spike User version