Skip to content
Snippets Groups Projects

Workaround for issue with non-relocatable environment variables in Allen

Merged Roel Aaij requested to merge ra-hlt1-throughput-test into master
1 file
+ 14
1
Compare changes
  • Side-by-side
  • Inline
@@ -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 \
Loading