From 5626ab2d9a8c908600e4fb7223686c4300fd3cb2 Mon Sep 17 00:00:00 2001 From: Anatoly Vildemanov Date: Tue, 2 Feb 2021 12:26:03 +0300 Subject: [PATCH] AZP/IODEMO: fix get PID in corrupter --- buildlib/io-demo.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildlib/io-demo.yml b/buildlib/io-demo.yml index 2e1d47e1bdd..9dec7867559 100644 --- a/buildlib/io-demo.yml +++ b/buildlib/io-demo.yml @@ -74,6 +74,10 @@ jobs: downtime=$(downtime) \ uptime=$(uptime) \ |& add_timestamp &>corrupter.log & + while ! pgrep -u "$USER" -f 'network-corrupter' + do + sleep 1 + done pgrep -u "$USER" -f 'network-corrupter' corrupter_pid=$(pgrep -u "$USER" -f 'network-corrupter') echo "corrupter_pid=$corrupter_pid"