Skip to contentSkip to conversation

tools/test-runner: Fix termination of the emulator

PATCH In review Zijun Hu 2 participants 2 messages Nov 20 Bluetooth drivers

lore
Share & tools
lore

Zijun Hu

author
#0 lore raw

PATCH 1/1 tools/test-runner: Fix termination of the emulator

run_command() intends to terminate the emulator, but wrongly sends SIGTERM to the D-Bus system daemon instead.

Fix by sending SIGTERM to @emulator_pid instead of @dbus_pid.

Fixes 850003734a74 ("test-runner: Add option to start emulator")
Assisted-by Claude:claude-opus-5-5
---
 tools/test-runner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/test-runner.c +1 -1
index 0bca31a46351..52b58df7618e 100644
@@ -2064,17 +2064,17 @@ start_next:
 
 	if (dbus_pid > 0)
 		kill(dbus_pid, SIGTERM);
 
 	if (dbus_session_pid > 0)
 		kill(dbus_session_pid, SIGTERM);
 
 	if (emulator_pid > 0)
-		kill(dbus_pid, SIGTERM);
+		kill(emulator_pid, SIGTERM);
 
 	if (monitor_pid > 0)
 		kill(monitor_pid, SIGTERM);
 
 	if (serial_fd >= 0)
 		close(serial_fd);
 }
 

---
base-commit: 1adfe662efeff12997df9ddd0960dbd0de9c8ea7
change-id: 20261120-fix_kvm-99b4b868ae3d

Best regards,

Signature · 1 line
Zijun Hu <[email protected]>
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1217178/

---Test result---

Test Summary:

CheckPatch                    PASS      0.45 seconds
GitLint                       FAIL      0.32 seconds
BuildEll                      PASS      16.16 seconds
BluezMake                     PASS      230.98 seconds
CheckSmatch                   PASS      235.70 seconds
bluezmakeextell               PASS      75.81 seconds
TestFunctional                PASS      1000.42 seconds
IncrementalBuild              PASS      232.51 seconds
ScanBuild                     PASS      848.13 seconds

Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[bluez] tools/test-runner: Fix termination of the emulator

19: B2 Line has trailing whitespace: "-- "

https://github.com/bluez/bluez/pull/2856

---
Regards,
Linux Bluetooth