From 9aa8cff14a27ac19b25091c7854e71d14594e985 Mon Sep 17 00:00:00 2001 From: kasun-buddhi Date: Tue, 5 Nov 2024 11:43:26 +0530 Subject: [PATCH] WIP : debugging questa_bashrc --- .gitlab-ci.yml | 2 ++ verif/sim/cva6.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a30104f63c3..70cf52d40ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -153,6 +153,8 @@ smoke: - "vcs-uvm" - "questa-uvm" script: + - echo "[[[[[[[ QUESTA_BASHRC ]]]]]]]" + - echo $QUESTA_BASHRC - source $QUESTA_BASHRC - bash verif/regress/smoke-tests.sh - if [[ $DV_SIMULATORS == *"spike"* ]]; then unset SPIKE_TANDEM; fi # dirty hack to do trace comparison between tandem execution and spike standalone diff --git a/verif/sim/cva6.py b/verif/sim/cva6.py index 6a94e64caa3..98295aba6f7 100644 --- a/verif/sim/cva6.py +++ b/verif/sim/cva6.py @@ -1139,7 +1139,8 @@ def check_spike_version(): # Get Spike hash from core-v-verif submodule spike_hash = subprocess.run('git log -1 --pretty=tformat:%h', capture_output=True, text=True, shell=True, cwd=os.environ.get("SPIKE_SRC_DIR")) spike_version = "1.1.1-dev " + spike_hash.stdout.strip() - + print("ath = {}, hash = {}. run_output = {}".format(os.environ.get("SPIKE_SRC_DIR"), spike_hash, + spike_version)) # Get Spike User version get_env_var("SPIKE_PATH") user_spike_version = subprocess.run("$SPIKE_PATH/spike -v", capture_output=True, text=True, shell=True) @@ -1174,6 +1175,7 @@ def check_spike_version(): logging.info(f"Spike Version: {user_spike_stderr_string}") + print("user_spike_stderr_string : {}".format(user_spike_stderr_string)) if user_spike_stderr_string != spike_version: incorrect_version_exit("Spike", user_spike_stderr_string, spike_version)