From b5a56fd61f5c908a8396777642aa3f6e89abbdec Mon Sep 17 00:00:00 2001 From: Nimika Keshri Date: Wed, 10 Aug 2011 10:35:38 +0300 Subject: [PATCH] Changes: Wait for camera to be prestarted in performance test RevBy: Olli Leppanen Description: Camera has the least priority in the prestarted apps and hence will be the last one to prestart. So we wait for camera to be up and running so that any more boosters are not used after applifed start. --- tests/harmattan/testscripts/test-perf.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/harmattan/testscripts/test-perf.rb b/tests/harmattan/testscripts/test-perf.rb index f36cb38..e697d6a 100755 --- a/tests/harmattan/testscripts/test-perf.rb +++ b/tests/harmattan/testscripts/test-perf.rb @@ -224,6 +224,10 @@ class TC_PerformanceTests < Test::Unit::TestCase end if not system "pgrep applifed" system("initctl start xsession/applifed") + #applifed start causes booster-m to be used to prestart applications. + #Camera has the least priority and the last one to be prestarted.Hence + #We wait for the camera to be up and running so that any more booster-m is not used up + wait_for_app('camera-ui') end wait_for_app('applauncherd') wait_for_app('booster-q')