All of lore.kernel.org
 help / color / mirror / Atom feed
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 1/3] ptest-pgxs.bbclass: accept options written with a space
Date: Sun,  6 Dec 2026 06:10:43 +0000	[thread overview]
Message-ID: <20261206061045.7-2-bbnpreetsingh@gmail.com> (raw)
In-Reply-To: <20261206061045.7-1-bbnpreetsingh@gmail.com>

Options such as --temp-config were only recognised as "--opt=value".
Written as "--opt value", the server config was not installed and the
tests failed with:

  could not open "./regress.conf" to read extra config: No such file or directory

Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com>
---
 meta-oe/classes/ptest-pgxs.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta-oe/classes/ptest-pgxs.bbclass b/meta-oe/classes/ptest-pgxs.bbclass
index 4c18ea84f5..173f22fff3 100644
--- a/meta-oe/classes/ptest-pgxs.bbclass
+++ b/meta-oe/classes/ptest-pgxs.bbclass
@@ -35,8 +35,16 @@ EOF
 	schedules=""
 	# REGRESS_OPTS is split on whitespace, so an option whose value
 	# contains spaces or quotes is not supported
+	prev=""
 	for o in $(echo "$vars" | sed -n 's/^REGRESS_OPTS=//p'); do
+		if [ -n "$prev" ]; then
+			o="$prev=$o"
+			prev=""
+		fi
 		case "$o" in
+		--temp-config|--temp-instance|--dbname|--inputdir|--expecteddir|--schedule)
+			prev="$o"
+			;;
 		--temp-config=*) conf=$(basename "${o#--temp-config=}") ;;
 		--temp-instance=*|--dbname=*) ;;
 		--inputdir=*) inputdir="${o#--inputdir=}"; opts="$opts $o" ;;
-- 
2.43.0


  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 ` Babanpreet Singh [this message]
2026-12-06  6:10 ` [meta-oe][PATCH 2/3] ptest-pgxs.bbclass: print the diffs from --outputdir Babanpreet Singh
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-2-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.