@@ -48,23 +48,23 @@ 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
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
6868# )
6969# run_configure
7070
0 commit comments