mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-15 10:34:15 +00:00
20 lines
466 B
Bash
Executable File
20 lines
466 B
Bash
Executable File
#!/bin/sh
|
|
# SUMMARY: Check that the build-args are correctly passed to Dockerfiles
|
|
# LABELS:
|
|
# REPEAT:
|
|
|
|
set -ex
|
|
|
|
# Source libraries. Uncomment if needed/defined
|
|
#. "${RT_LIB}"
|
|
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
|
|
|
# Test code goes here
|
|
RESULT=$(linuxkit build linuxkit.yaml 2>&1 || echo FAILED)
|
|
if [ "${RESULT}" != "FAILED" ]; then
|
|
echo "Build should have failed with invalid yaml, instead was ${RESULT}"
|
|
fi
|
|
echo "Summary: correctly detected invalid yaml"
|
|
|
|
exit 0
|