lorax-templates-rhel/tests/scripts/run_tests.sh
Brian C. Lane f5718645cf Add gating test for the new templates
This runs lorax to generate a boot.iso using the new templates.

Resolves: rhbz#1678936
2019-05-14 16:24:16 -07:00

19 lines
604 B
Bash
Executable File

#!/bin/bash
set -eux
if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then
echo "Failed to find lorax-templates-rhel templates in /usr/share/lorax/templates.d/"
exit 1
fi
# Gather up the list of system repo files and use them for lorax
REPOS=$(for f in /etc/yum.repos.d/*repo; do echo -n "--repo $f "; done)
if [ -z "$REPOS" ]; then
echo "No system repos found"
exit 1
fi
# Run lorax using the host's repository configuration file
lorax --product="Red Hat Enterprise Linux" --version=8 --release=8 --volid="RHEL-8-test" \
$REPOS --isfinal --nomacboot /var/tmp/lorax-rhel8-iso/