Skip to content
Snippets Groups Projects
Commit 6618ac8e authored by Christopher Wipf's avatar Christopher Wipf
Browse files

gwinc.test: inherit python interpreter

Pass sys.executable to the gen_cache.sh script, instead of using a
hard-coded interpreter path
parent d5bc7891
No related branches found
No related tags found
1 merge request!88gwinc.test: inherit python interpreter
Pipeline #126043 passed
......@@ -90,7 +90,7 @@ def gen_cache(git_hash, path):
"""
logging.info("creating new cache for hash {}...".format(git_hash))
subprocess.run(
[test_path('gen_cache.sh'), git_hash, path],
[test_path('gen_cache.sh'), git_hash, path, sys.executable],
check=True,
)
......
......@@ -8,6 +8,8 @@ fi
git_hash="$1"
cache_dir="$2"
python="$3"
[ -z "$python" ] && python=python3
mkdir -p $cache_dir
cache_dir=$(cd $cache_dir && pwd)
......@@ -19,8 +21,8 @@ git archive $git_hash | tar -x -C $gwinc_dir
cd $gwinc_dir
export LOG_LEVEL=INFO
for ifo in $(python3 -c "import gwinc; print(' '.join(gwinc.IFOS))") ; do
python3 -m gwinc --save $cache_dir/${ifo}.h5 $ifo
for ifo in $($python -c "import gwinc; print(' '.join(gwinc.IFOS))") ; do
$python -m gwinc --save $cache_dir/${ifo}.h5 $ifo
done
echo $git_hash > $cache_dir/git_hash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment