From 5622749ab28254e2e3f4a6556cc483f05d140364 Mon Sep 17 00:00:00 2001 From: Sarah Osborn <30503782+osborn9@users.noreply.github.com> Date: Mon, 4 Oct 2021 18:17:52 -0500 Subject: [PATCH] Add clean-up phase to spack build in autotest (#481) * Add clean-up phase to spack build in autotest --- AUTOTEST/machine-tux-spack.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AUTOTEST/machine-tux-spack.sh b/AUTOTEST/machine-tux-spack.sh index 0800559fb..c0e62275f 100755 --- a/AUTOTEST/machine-tux-spack.sh +++ b/AUTOTEST/machine-tux-spack.sh @@ -58,6 +58,14 @@ spack load $spackspec spackdir=`spack location -i $spackspec` test.sh basic.sh ../src -co: -mo: -spack $spackdir -ro: -superlu ./renametest.sh basic $output_dir/basic-dsuperlu + +# Clean-up spack build +spack spec --yaml $spackspec > test.yaml +grep ' hash:' test.yaml | sed -e 's/^.*: /\//' | xargs spack mark -e +spack gc -y +grep ' hash:' test.yaml | sed -e 's/^.*: /\//' | xargs spack mark -i +rm -f test.yaml +spack clean --all spack uninstall -yR $superludistspec # Echo to stderr all nonempty error files in $output_dir