Skip to content

Commit fe4e916

Browse files
committed
Ensure the non-failure tests output remain silent when building
1 parent 7b02dae commit fe4e916

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

end-to-end-test.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,19 @@ for flag in ${collector_flags}; do
253253
fi
254254
done
255255

256-
echo "ENABLED COLLECTORS=======" >&2
257-
echo "${supported_enabled_collectors:1}" | tr ' ' '\n' | sort >&2
258-
echo "=========================" >&2
256+
cat << EOF > "${tmpdir}/config.log"
257+
ENABLED COLLECTORS=======
258+
$(echo "${supported_enabled_collectors:1}" | tr ' ' '\n' | sort)
259+
=========================
259260
260-
echo "DISABLED COLLECTORS======" >&2
261-
echo "${supported_disabled_collectors:1}" | tr ' ' '\n' | sort >&2
262-
echo "=========================" >&2
261+
DISABLED COLLECTORS======
262+
$(echo "${supported_disabled_collectors:1}" | tr ' ' '\n' | sort)
263+
=========================
263264
264-
echo "IGNORED FLAGS============" >&2
265-
echo "${ignored_flags:1}"| tr ' ' '\n' | sort | uniq >&2
266-
echo "=========================" >&2
265+
IGNORED FLAGS============
266+
$(echo "${ignored_flags:1}"| tr ' ' '\n' | sort | uniq)
267+
=========================
268+
EOF
267269

268270
if [ ${socket} -ne 0 ]; then
269271
touch "${unix_socket}"
@@ -297,6 +299,9 @@ finish() {
297299
if [ $? -ne 0 -o ${verbose} -ne 0 ]
298300
then
299301
cat << EOF >&2
302+
CONFIG ==================
303+
$(cat "${tmpdir}/config.log")
304+
=========================
300305
LOG =====================
301306
$(cat "${tmpdir}/node_exporter.log")
302307
=========================

0 commit comments

Comments
 (0)