drop crioctl source code
Signed-off-by: Wei Wei <weiwei.inf@gmail.com>
This commit is contained in:
parent
5f5a7a3648
commit
3006a2159a
13 changed files with 45 additions and 1470 deletions
|
@ -1,31 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# Check that no new tests are being added using crioctl
|
||||
|
||||
export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source "${SCRIPTDIR}/.validate"
|
||||
|
||||
IFS=$'\n'
|
||||
files=( $(validate_diff --diff-filter=ACMR --name-only -- 'test/*.bats' || true) )
|
||||
unset IFS
|
||||
|
||||
badFiles=()
|
||||
for f in "${files[@]}"; do
|
||||
# we use "git show" here to validate that what's committed doesn't contain crioctl calls
|
||||
if git show "$VALIDATE_HEAD:$f" | grep -q crioctl; then
|
||||
badFiles+=( "$f" )
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ${#badFiles[@]} -eq 0 ]; then
|
||||
echo 'Congratulations! No new tests have been added using crioctl.'
|
||||
else
|
||||
{
|
||||
echo "These files use crioctl instead of crictl:"
|
||||
echo ""
|
||||
for f in "${badFiles[@]}"; do
|
||||
echo " - $f"
|
||||
done
|
||||
echo
|
||||
} >&2
|
||||
false
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue