From: Zijun Hu <zijun.hu@oss.qualcomm.com>
To: Linux Bluetooth <linux-bluetooth@vger.kernel.org>
Cc: Marcel Holtmann <marcel@holtmann.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Zijun Hu <zijun_hu@icloud.com>
Subject: [PATCH bluez] tools/test-runner: Add /usr/bin paths for btmon and btvirt
Date: Sun, 22 Nov 2026 03:36:51 -0800 [thread overview]
Message-ID: <20261122-tr_paths-v1-1-044cfb9521ac@oss.qualcomm.com> (raw)
btmon is installed to /usr/bin, but test-runner only looks in
/usr/sbin outside the build tree, so -m fails with "Failed to locate
Monitor binary".
Add /usr/bin for btmon, and for btvirt as well.
Assisted-by: Claude:claude-opus-5-5
---
tools/test-runner.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/test-runner.c b/tools/test-runner.c
index 0bca31a46351..8a8406642209 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -1628,16 +1628,17 @@ static const char *test_table[] = {
"tools/bnep-tester",
"tools/check-selftest",
NULL
};
static const char *monitor_table[] = {
"btmon",
"monitor/btmon",
+ "/usr/bin/btmon",
"/usr/sbin/btmon",
NULL
};
static pid_t start_btmon(const char *home)
{
const char *monitor = NULL;
char *argv[3];
@@ -1685,16 +1686,17 @@ static pid_t start_btmon(const char *home)
printf("Monitor process %d created\n", pid);
return pid;
}
static const char *btvirt_table[] = {
"btvirt",
"emulator/btvirt",
+ "/usr/bin/btvirt",
"/usr/sbin/btvirt",
NULL
};
static const char *find_btvirt(void)
{
int i;
---
base-commit: 1adfe662efeff12997df9ddd0960dbd0de9c8ea7
change-id: 20261122-tr_paths-eb1475ad71e3
Best regards,
--
Zijun Hu <zijun.hu@oss.qualcomm.com>
reply other threads:[~2026-11-22 11:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261122-tr_paths-v1-1-044cfb9521ac@oss.qualcomm.com \
--to=zijun.hu@oss.qualcomm.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=zijun_hu@icloud.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox