Skip to content

Commit 128b865

Browse files
committed
Consistent use of stderr
1 parent d2b4d8e commit 128b865

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function doTest() {
2020
helm template --kubeconfig /tmp/doesnotexistever $target --name-template $name ${CHART_OPTS} > ${OUTPUT}
2121
rc=$?
2222
if [ $rc -ne 0 ]; then
23-
echo "FAIL on helm template $target --name-template $name ${CHART_OPTS}"
23+
echo "FAIL on helm template $target --name-template $name ${CHART_OPTS}" >&2
2424
exit 1
2525
fi
2626
if [ ! -e ${REFERENCE} ]; then
2727
cp ${OUTPUT} ${REFERENCE}
28-
echo -e "\n\n#### Created test output\007\n#### Now add ${REFERENCE} to Git\n\n\007"
28+
echo -e "\n\n#### Created test output\007\n#### Now add ${REFERENCE} to Git\n\n\007" >&2
2929
exit 2
3030
fi
3131
diff -u ${REFERENCE} ${OUTPUT}
@@ -73,7 +73,7 @@ function doTestCompare() {
7373

7474
if [ ! -e ${REFERENCE} ]; then
7575
cp ${OUTPUT} ${REFERENCE}
76-
echo -e "\n\n#### Created test output\007\n#### Now add ${REFERENCE} to Git\n\n\007"
76+
echo -e "\n\n#### Created test output\007\n#### Now add ${REFERENCE} to Git\n\n\007" >&2
7777
exit 2
7878
fi
7979

@@ -101,9 +101,9 @@ function doTestCompare() {
101101
}
102102

103103
if [ $2 = "all" ]; then
104-
echo -e "\n#####################"
105-
echo "### ${name}"
106-
echo "#####################"
104+
echo -e "\n#####################" >&2
105+
echo "### ${name}" >&2
106+
echo "#####################" >&2
107107

108108
# Test that all values used by the chart are in values.yaml with the same defaults as the pattern
109109
doTest naked

0 commit comments

Comments
 (0)