mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 01:02:33 +00:00
CI: Rename+cleanup install doc test function
Rename the `check_install_guides()` function to `check_install_docs()` and clean up: - Improve messages. - Add more braces around variables. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
3d08ccd6db
commit
d21eaaf9e8
@ -15,7 +15,7 @@ info()
|
|||||||
# Detect if any installation documents changed. If so, run the
|
# Detect if any installation documents changed. If so, run the
|
||||||
# kata manager to "execute" the install guide to ensure the
|
# kata manager to "execute" the install guide to ensure the
|
||||||
# commands it specified result in a working system.
|
# commands it specified result in a working system.
|
||||||
check_install_guides()
|
check_install_docs()
|
||||||
{
|
{
|
||||||
if [ -n "$TRAVIS" ]
|
if [ -n "$TRAVIS" ]
|
||||||
then
|
then
|
||||||
@ -54,13 +54,13 @@ check_install_guides()
|
|||||||
# No files were changed
|
# No files were changed
|
||||||
[ -z "$files" ] && return
|
[ -z "$files" ] && return
|
||||||
|
|
||||||
changed=$(echo "$files" | grep "^install/.*\.md$" || true)
|
changed=$(echo "${files}" | grep "^install/.*\.md$" || true)
|
||||||
|
|
||||||
[ -z "$changed" ] && info "No install guides modified" && return
|
[ -z "$changed" ] && info "No install documents modified" && return
|
||||||
|
|
||||||
info "Found modified install guides: $changed"
|
info "Found modified install documents: ${changed}"
|
||||||
|
|
||||||
# Regardless of which distro install guide(s) were changed, we test
|
# Regardless of which installation documents were changed, we test
|
||||||
# them all where possible.
|
# them all where possible.
|
||||||
|
|
||||||
local -r GOPATH=$(go env GOPATH)
|
local -r GOPATH=$(go env GOPATH)
|
||||||
@ -85,4 +85,4 @@ check_install_guides()
|
|||||||
sudo -E docker run --rm -i --runtime "kata-runtime" busybox echo "$msg"
|
sudo -E docker run --rm -i --runtime "kata-runtime" busybox echo "$msg"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_install_guides
|
check_install_docs
|
||||||
|
Loading…
Reference in New Issue
Block a user