Skip to content

Commit

Permalink
Printing templates to stdout during testing so reviewers don't have to (
Browse files Browse the repository at this point in the history
#322)

pull the patch and generate the templates themselves

Signed-off-by: Omer Yahud <[email protected]>
  • Loading branch information
omeryahud authored Mar 4, 2021
1 parent 3e206dc commit 3d9e208
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion automation/unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -ex
make generate

#syntax check
templates=( dist/templates/* )
templates=`ls dist/templates/*`
namespace="kubevirt"

oc apply -f - <<EOF
Expand All @@ -15,6 +15,12 @@ EOF

oc project $namespace

echo "Printing templates to stdout for debugging"
for template in $templates; do
cat "$template"
done

echo "Processing all templates to find syntax issues"
for template in $templates; do
oc process -f "$template" NAME=test SRC_PVC_NAME=test || exit 1;
done
Expand Down

0 comments on commit 3d9e208

Please sign in to comment.