diff --git a/scripts/benchmark-scripts/MooreOnline_hlt1_pp_default_data.sh b/scripts/benchmark-scripts/MooreOnline_hlt1_pp_default_data.sh index a6c86fbee96b00ffbf4672dda6d07592c9081f23..d0692fc8ede9e15d65146ec23bfb1fe58b528ba7 100755 --- a/scripts/benchmark-scripts/MooreOnline_hlt1_pp_default_data.sh +++ b/scripts/benchmark-scripts/MooreOnline_hlt1_pp_default_data.sh @@ -23,13 +23,26 @@ else mkdir -p /tmp/data/Hlt1Throughput fi +# WORKAROUND for environment variables that are not relocatable +allen_dirs=($(python - <<'CODE' +import inspect +from Allen import tck +for s in ('python', 'InstallArea'): + print(inspect.getfile(tck).split(f"/{s}/")[0]) +CODE +)) +export ALLEN_INSTALL_DIR="${allen_dirs[0]}" + # Create the TCK -python $ALLENROOT/scripts/create_hlt1_tck.py \ +python "${allen_dirs[1]}/Rec/Allen/scripts/create_hlt1_tck.py" \ RTA/2050.01.01 \ hlt1_pp_matching_no_ut_1000KHz \ config.git \ 0x10000001 2>&1 +# Sometimes the system DIM_DNS_NODE seems to be picked up +unset DIM_DNS_NODE + # Run the test $MOORESCRIPTSROOT/scripts/testbench.py \ --test-file-db-key=2024_mep_289232 \