From: David Goulet Date: Tue, 20 Mar 2012 19:33:10 +0000 (-0400) Subject: Fix: add delay before validating apps in test nproc X-Git-Tag: v2.0.0-rc4~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0e82bf23cc577038b8b65ba7cb09d98e3f65a4c7;p=lttng-tools.git Fix: add delay before validating apps in test nproc Signed-off-by: David Goulet --- diff --git a/tests/ust-nprocesses/run b/tests/ust-nprocesses/run index 20f769afd..ae49931f8 100755 --- a/tests/ust-nprocesses/run +++ b/tests/ust-nprocesses/run @@ -43,7 +43,9 @@ do ./$CURDIR/$TEST_BIN_NAME 1000 >/dev/null 2>&1 & done -echo -n "Validating registered apps: " +echo -n "Validating registered apps in 3 seconds..." + +sleep 3 listing=$($TESTDIR/../src/bin/lttng/$LTTNG_BIN list -u) reg_app_count=$(echo -n $listing | sed "s/$TEST_BIN_NAME/$TEST_BIN_NAME\n/g" | grep "$TEST_BIN_NAME" | wc -l)