From ce6b0a43bc6a7e3fdacfe2a4f2e2cfbae24bd0f1 Mon Sep 17 00:00:00 2001 From: Michal Ruprich Date: Tue, 4 Apr 2023 14:38:45 +0200 Subject: [PATCH] Better cleanup condition --- Sanity/basic/runtest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sanity/basic/runtest.sh b/Sanity/basic/runtest.sh index 9a37d68..987971d 100755 --- a/Sanity/basic/runtest.sh +++ b/Sanity/basic/runtest.sh @@ -119,7 +119,11 @@ sleep 3 rlPhaseEnd rlPhaseStartCleanup - rlWaitForCmd "killall python2" -r 1 -m 50 + if rlIsRHEL '>8' || rlIsCentOS; then + rlWaitForCmd "killall python3" -r 1 -m 50 + else + rlWaitForCmd "killall python2" -r 1 -m 50 + fi #rlRun "while ! killall python2; do true; done" rlRun "popd" rlRun "rm -r $TmpDir" 0 "Removing tmp directory"