Add clean-up phase to spack build in autotest (#481)

* Add clean-up phase to spack build in autotest
This commit is contained in:
Sarah Osborn 2021-10-04 18:17:52 -05:00 committed by GitHub
parent e8d142b630
commit 5622749ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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