From 8e0cacc15e00e28d7e3f7721dd7dd6e5a80cafd3 Mon Sep 17 00:00:00 2001 From: Roel Aaij <raaij@nikhef.nl> Date: Sat, 27 Apr 2024 10:24:07 +0200 Subject: [PATCH] Workaround for issue with non-relocatable environment variables in Allen --- .../MooreOnline_hlt1_pp_default_data.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/benchmark-scripts/MooreOnline_hlt1_pp_default_data.sh b/scripts/benchmark-scripts/MooreOnline_hlt1_pp_default_data.sh index a6c86fbe..d0692fc8 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 \ -- GitLab