Skip to content

Commit dbd68b8

Browse files
committed
Attempt #2 for run_configure of build-env
Signed-off-by: tldahlgren <dahlgren1@llnl.gov>
1 parent e08a79e commit dbd68b8

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

outputs/packaging.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@ example --expect-error packaging/install-mpileaks-2 "spack install tutorial-mpi
4848
stage_dir="$(spack location -s tutorial-mpileaks)"
4949
example 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

7171
cp "$PROJECT/package-py-files/3.package.py" "$mpileaks_package_py"
7272
example packaging/install-mpileaks-3 "spack install tutorial-mpileaks"

0 commit comments

Comments
 (0)