c12s-kubespray/tests/scripts/molecule_logs.sh

10 lines
253 B
Bash
Raw Normal View History

#!/bin/bash
# Ensure a clean environent
rm -fr molecule_logs
mkdir -p molecule_logs
# Collect and archive the logs
find ~/.cache/molecule/ -name \*.out -o -name \*.err -type f | xargs tar -uf molecule_logs/molecule.tar
gzip molecule_logs/molecule.tar