From d011196380f7f84076977953c3568778f9c7aad5 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Wed, 3 Apr 2019 15:44:09 +0200 Subject: [PATCH] test/ocf: wait for spdk app to finish at the end A termination signal was being sent, but we didn't wait for the spdk app to actually exit. This was actually causing an intermittent failure on our CI, as the application could exit during our setup.sh cleanup call, giving the following error: ``` Removing: /dev/shm/iscsi_trace.pid284533 rm: cannot remove '/dev/shm/iscsi_trace.pid284533': No such file or directory ``` Change-Id: Ic6ff0130b6264fa506c367d589853e5f3132c1d2 Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450032 Tested-by: SPDK CI Jenkins Reviewed-by: Vitaliy Mysak Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker --- test/ocf/management/multicore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ocf/management/multicore.sh b/test/ocf/management/multicore.sh index 99ac8d654..8bcc284be 100755 --- a/test/ocf/management/multicore.sh +++ b/test/ocf/management/multicore.sh @@ -16,7 +16,7 @@ function start_spdk() } function stop_spdk() { - kill -2 $spdk_pid + killprocess $spdk_pid trap - SIGINT SIGTERM EXIT }