Skip to content

Commit edcd449

Browse files
committed
Tweak output
1 parent 01de50f commit edcd449

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/test.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function doTest() {
1717
OUTPUT=${TESTDIR}/.${FILENAME}
1818
REFERENCE=${TESTDIR}/${FILENAME}
1919

20-
echo "Testing $name chart (${TEST_VARIANT})" >&2
20+
echo -e "\nTesting $name chart (${TEST_VARIANT}) with opts [$CHART_OPTS]" >&2
2121
helm template --kubeconfig /tmp/doesnotexistever $target --name-template $name ${CHART_OPTS} > ${OUTPUT}
2222
rc=$?
2323
if [ $rc -ne 0 ]; then
@@ -33,9 +33,9 @@ function doTest() {
3333
rc=$?
3434
if [ $rc = 0 ]; then
3535
rm -f ${TESTDIR}/.${name}.*
36-
echo -e "PASS on $name $TEST_VARIANT with opts [$CHART_OPTS]\n"
36+
echo "PASS" >&2
3737
else
38-
echo -e "FAIL on $name $TEST_VARIANT with opts [$CHART_OPTS]\n"
38+
echo "FAIL" >&2
3939
exit $rc
4040
fi
4141
}
@@ -48,7 +48,7 @@ function doTestCompare() {
4848
OUTPUT=${TESTDIR}/.${FILENAME}
4949
REFERENCE=${TESTDIR}/${FILENAME}
5050

51-
echo "Testing $name chart (${TEST_VARIANT})" >&2
51+
echo -e "\nTesting $name chart (${TEST_VARIANT})" >&2
5252
# Another method of finding variables missing from values.yaml, eg.
5353
# - name: -datacenter
5454
# + name: pattern-name-datacenter
@@ -72,17 +72,17 @@ function doTestCompare() {
7272

7373
if [ $rc = 0 ]; then
7474
rm -f ${TESTDIR}/.${name}.*
75-
echo -e "PASS on $name $TEST_VARIANT with opts [$CHART_OPTS]\n"
75+
echo "PASS" >&2
7676
else
77-
echo -e "FAIL on $name $TEST_VARIANT with opts [$CHART_OPTS]\n"
77+
echo "FAIL" >&2
7878
exit $rc
7979
fi
8080
}
8181

8282
if [ $2 = "all" ]; then
8383
echo -e "\n#####################"
84-
echo -e "### ${name}"
85-
echo -e "#####################\n"
84+
echo "### ${name}"
85+
echo "#####################"
8686

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

0 commit comments

Comments
 (0)