mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
OEL7: Fix CentOS7 Extras for OEL7 (#8219)
* OEL7: Fix CentOS7 Extras for OEL7 * Molecule: add logs collection for jobs
This commit is contained in:
9
tests/scripts/molecule_logs.sh
Executable file
9
tests/scripts/molecule_logs.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
@@ -6,7 +6,7 @@ export LANG=C.UTF-8
|
||||
|
||||
for d in $(find roles -name molecule -type d)
|
||||
do
|
||||
cd $(dirname $d)
|
||||
pushd $(dirname $d)
|
||||
molecule test --all
|
||||
cd -
|
||||
done
|
||||
popd
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user