@@ -48,25 +48,25 @@ example --expect-error packaging/install-mpileaks-2 "spack install tutorial-mpi
4848stage_dir=" $( spack location -s tutorial-mpileaks) "
4949example packaging/build-output " cat $stage_dir /spack-build-out.txt"
5050
51- # TODO: Update build-env-configure output manually since automation fails.
51+ # TODO: Update build-env-configure.out manually since automation fails.
5252#
53- # 1. Original approach fails since configure cannot be found.
53+ # 1. Original approach fails claiming configure cannot be found.
5454# prefix=$(spack python -c \
5555# 'import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)')
5656# spack cd tutorial-mpileaks
5757# echo "configure --prefix=$prefix" | example packaging/build-env-configure "spack build-env tutorial-mpileaks -- bash"
5858#
5959# 2. Using a bash function .. seems to encounter excessive delays on the order
6060# of over 10 minutes when watched in CI
61- # run_configure() (
62- # prefix=$(spack python -c \
63- # 'import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)')
64- # spack cd tutorial-mpileaks
65- # spack build-env tutorial-mpileaks bash
66- # example --expect-error $PROJECT/packaging/build-env-configure "./configure --prefix=$prefix"
67- # cd $PROJECT
68- # )
69- # run_configure
61+ run_configure () (
62+ prefix=$( spack python -c \
63+ ' import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)' )
64+ spack cd tutorial-mpileaks
65+ spack build-env tutorial-mpileaks bash
66+ example --expect-error $PROJECT /packaging/build-env-configure " ./configure --prefix=$prefix "
67+ cd $PROJECT
68+ )
69+ run_configure
7070
7171cp " $PROJECT /package-py-files/3.package.py" " $mpileaks_package_py "
7272example packaging/install-mpileaks-3 " spack install tutorial-mpileaks"
0 commit comments