All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Loïc Minier" <loic.minier@oss.qualcomm.com>
To: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
	Viresh Kumar <viresh.kumar@linaro.org>,
	Shuah Khan <shuah@kernel.org>,
	Muhammad Usama Anjum <usama.anjum@arm.com>,
	Shuah Khan <skhan@linuxfoundation.org>,
	linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH] selftests: cpufreq: Propagate do_test() exit status
Date: Thu, 3 Dec 2026 14:42:19 +0100	[thread overview]
Message-ID: <axFxu1Fg6ew9tdZI@tern> (raw)
In-Reply-To: <9fafe114-88e0-4101-82ee-07d25f9fc0ef@oss.qualcomm.com>

Hi Zhongqiu,

and thanks for the quick review!

On Thu, Dec 03, 2026 at 11:07:46AM +0800, Zhongqiu Han wrote:
> On 12/3/2026 4:59 AM, Loïc Minier wrote:
[...]
> > Fixes: c7e84706fd3b ("selftests: cpufreq: conform test to TAP")
> 
> The fix looks correct to me.
> 
> However, I think the issue was introduced by commit 40d70d4d6097
> ("selftests: cpufreq: Write test output to stdout as well"). Commit
> c7e84706fd3b ("selftests: cpufreq: conform test to TAP") attempted to
> fix it by checking PIPESTATUS, but the fix did not work as intended.
> 
> So the Fixes tag should point to 40d70d4d6097 instead, right?

You're right: before 40d70d4d6097, do_test ran in the main shell, so its
"exit 2" terminated main.sh with that status. Running it in a pipeline
moved it to a subshell, and the status has been lost since. c7e84706fd3b
tried to propagate it, but the check never worked.

I'll wait another day or two and then I'll send a v2 with the Fixes tag
pointing to 40d70d4d6097.

Best
- Loïc

      reply	other threads:[~2026-12-03 13:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 20:59 [PATCH] selftests: cpufreq: Propagate do_test() exit status Loïc Minier
2026-12-03  3:07 ` Zhongqiu Han
2026-12-03 13:42   ` Loïc Minier [this message]

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=axFxu1Fg6ew9tdZI@tern \
    --to=loic.minier@oss.qualcomm.com \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=shuah@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=usama.anjum@arm.com \
    --cc=viresh.kumar@linaro.org \
    --cc=zhongqiu.han@oss.qualcomm.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.