From 0ba273a11d1a009b92171f7a21adce03f92ec9e5 Mon Sep 17 00:00:00 2001 From: Ahmet Gedemenli Date: Thu, 26 Jan 2023 20:19:07 +0300 Subject: [PATCH] Add valgrind output check to diff script --- src/test/regress/bin/diff | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/regress/bin/diff b/src/test/regress/bin/diff index a0b40f328..0cf3df63a 100755 --- a/src/test/regress/bin/diff +++ b/src/test/regress/bin/diff @@ -47,7 +47,12 @@ then sed -Ef "$normalize_file" < "$file1" > "$file1.modified" sed -Ef "$normalize_file" < "$file2" > "$file2.modified" "$DIFF" -w $args "$file1.modified" "$file2.modified" | LC_CTYPE=C.UTF-8 diff-filter "$BASEDIR/normalize.sed" - exit ${PIPESTATUS[0]} + diff_status=${PIPESTATUS[0]} + if [ -s "$BASEDIR/../citus_valgrind_test_log.txt" ]; then + cat "$BASEDIR/../citus_valgrind_test_log.txt" + exit 1 + fi + exit $diff_status else exec "$DIFF" -w $args "$file1" "$file2" fi