-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the first place we're wrapping mantle via our main entrypoint, and hopefully we'll increase that. Example usage: `coreos-assembler kola run rhcos.basic`. Requires: coreos/mantle#920
- Loading branch information
Showing
4 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
dn=$(dirname $0) | ||
. ${dn}/cmdlib.sh | ||
|
||
latest_qcow=$(get_latest_qemu) | ||
if [ -z "${latest_qcow}" ]; then | ||
fatal "No latest build" | ||
fi | ||
|
||
# XXX: teach to kola | ||
distro= | ||
bn=$(basename "${latest_qcow}") | ||
if [[ ${bn} = fedora-coreos-* ]]; then | ||
distro="-b fcos" | ||
elif [[ ${bn} = rhcos-* ]]; then | ||
distro="-b rhcos --ignition-version v2" | ||
else | ||
echo "WARNING: Failed to detect distro, use -b to specify" | ||
fi | ||
|
||
# let's print out the actual exec() call we do | ||
set -x | ||
|
||
# shellcheck disable=SC2086 | ||
exec sudo kola $distro --output-dir tmp/kola --qemu-image "${latest_qcow}" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters