From c2a07cfae9356843e6023e7dd0659a6fc9da1f4e Mon Sep 17 00:00:00 2001 From: Thyagarajan Balakrishnan Date: Mon, 20 Feb 2012 11:30:01 +0200 Subject: [PATCH] Changes: find the string anywhere in the output RevBy: TrustMe --- tests/harmattan/testscripts/test-invoker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/harmattan/testscripts/test-invoker.py b/tests/harmattan/testscripts/test-invoker.py index d58618d..b64b42b 100644 --- a/tests/harmattan/testscripts/test-invoker.py +++ b/tests/harmattan/testscripts/test-invoker.py @@ -149,7 +149,7 @@ class InvokerTests(CustomTestCase): st, op = commands.getstatusoutput("/usr/share/applauncherd-testscripts/signal-forward/fala_sf_m.py") debug("The Invoker killed by : <%s>" %op.split ('\n')[-1]) - self.assert_(op.split('\n')[-1].startswith('Segmentation fault') == True, "The invoker(m-booster) was not killed by the same signal") + self.assert_(op.split('\n')[-1].find('Segmentation fault') != -1, "The invoker(m-booster) was not killed by the same signal") #Test for d-booster debug("Test for d-booster")