From: Babanpreet Singh <bbnpreetsingh@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>,
Babanpreet Singh <bbnpreetsingh@gmail.com>
Subject: [meta-oe][PATCH 2/3] ptest-pgxs.bbclass: print the diffs from --outputdir
Date: Sun, 6 Dec 2026 06:10:44 +0000 [thread overview]
Message-ID: <20261206061045.7-3-bbnpreetsingh@gmail.com> (raw)
In-Reply-To: <20261206061045.7-1-bbnpreetsingh@gmail.com>
An extension that sets --outputdir gets its regression diffs written
there, but run-ptest only printed them from the directory the tests ran
in, so failures showed no diffs.
Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com>
---
meta-oe/classes/ptest-pgxs.bbclass | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/meta-oe/classes/ptest-pgxs.bbclass b/meta-oe/classes/ptest-pgxs.bbclass
index 173f22fff3..70d9b80a87 100644
--- a/meta-oe/classes/ptest-pgxs.bbclass
+++ b/meta-oe/classes/ptest-pgxs.bbclass
@@ -32,6 +32,7 @@ EOF
opts=""
inputdir=.
expecteddir=.
+ outputdir=.
schedules=""
# REGRESS_OPTS is split on whitespace, so an option whose value
# contains spaces or quotes is not supported
@@ -42,13 +43,14 @@ EOF
prev=""
fi
case "$o" in
- --temp-config|--temp-instance|--dbname|--inputdir|--expecteddir|--schedule)
+ --temp-config|--temp-instance|--dbname|--inputdir|--expecteddir|--outputdir|--schedule)
prev="$o"
;;
--temp-config=*) conf=$(basename "${o#--temp-config=}") ;;
--temp-instance=*|--dbname=*) ;;
--inputdir=*) inputdir="${o#--inputdir=}"; opts="$opts $o" ;;
--expecteddir=*) expecteddir="${o#--expecteddir=}"; opts="$opts $o" ;;
+ --outputdir=*) outputdir="${o#--outputdir=}"; opts="$opts $o" ;;
--schedule=*)
schedules="$schedules ${o#--schedule=}"
opts="$opts --schedule=$(basename "${o#--schedule=}")"
@@ -79,8 +81,8 @@ EOF
printf '%b\n' "${PTEST_PGXS_CONF}" >> ${D}${PTEST_PATH}/tests/ptest.conf
fi
- printf 'REGRESS="%s"\nREGRESS_OPTS="%s"\nPGBIN="%s"\nPG_REGRESS="%s"\n' \
- "$regress" "$opts" "${bindir}" \
+ printf 'REGRESS="%s"\nREGRESS_OPTS="%s"\nOUTPUTDIR="%s"\nPGBIN="%s"\nPG_REGRESS="%s"\n' \
+ "$regress" "$opts" "$outputdir" "${bindir}" \
"${libdir}/postgresql/pgxs/src/test/regress/pg_regress" \
> ${D}${PTEST_PATH}/ptest-pgxs.vars
@@ -112,7 +114,7 @@ if [ "$RC" -ne 0 ]; then
cat "$LOG"
echo
fi
- [ -f "$WORK/regression.diffs" ] && cat "$WORK/regression.diffs"
+ [ -f "$WORK/$OUTPUTDIR/regression.diffs" ] && cat "$WORK/$OUTPUTDIR/regression.diffs"
fi
rm -rf "$WORK"
[ "$RC" -eq 0 ]
--
2.43.0
next prev parent reply other threads:[~2026-12-06 6:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 6:10 [meta-oe][PATCH 0/3] ptest-pgxs.bbclass: three more fixes Babanpreet Singh
2026-12-06 6:10 ` [meta-oe][PATCH 1/3] ptest-pgxs.bbclass: accept options written with a space Babanpreet Singh
2026-12-06 6:10 ` Babanpreet Singh [this message]
2026-12-06 6:10 ` [meta-oe][PATCH 3/3] ptest-pgxs.bbclass: treat an empty exit status as a failure Babanpreet Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261206061045.7-3-bbnpreetsingh@gmail.com \
--to=bbnpreetsingh@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.