Enable save of logs on failure

This commit is contained in:
iadgovuser26 iadgovuser26@empire.eclipse.ncsc.mil 2024-07-22 16:46:08 -04:00
parent 1f8dd7c327
commit f6de3793e3
2 changed files with 2 additions and 5 deletions

View File

@ -75,9 +75,6 @@ if [ -f "$hwJsonFile" ]; then
cp "$hwJsonFile" "$ciTestHwJsonFile"
fi
# Can remove this once unzip is added to the image
dnf install -y unzip &> /dev/null
# Step 2: Copy the platform cert to tcg folder and or upload it to the ACA
if [[ ! -d $pcDir ]]; then
pcDir=$profileDir/default/platformcerts

View File

@ -125,14 +125,14 @@ jobs:
# run: |
# .ci/system-tests/tests/rim_system_tests.sh
- name: Copy System Test Log files
continue-on-error: true
if: always()
shell: bash
run: |
echo "*** Extracting ACA and Provisioner.Net logs ..."
docker exec hirs-aca1 bash -c "mkdir -p /HIRS/logs/aca/ && cp -arp /var/log/hirs/* /HIRS/logs/aca/"
docker exec hirs-provisioner1-tpm2 bash -c "mkdir -p /HIRS/logs/provisioner/ && cp -ap hirs*.log /HIRS/logs/provisioner/ && chmod -R 777 /HIRS/logs"
- name: Docker Compose Down
continue-on-error: true
if: always()e
shell: bash
run: |
echo "*** Exiting and removing Docker containers and network ..."