From af27c480ccbf5093ed1889956e95ebdd5879f06c Mon Sep 17 00:00:00 2001 From: Nimika Keshri Date: Thu, 4 Aug 2011 10:01:52 +0300 Subject: [PATCH] Changes: Added correct assert for SIGUSR tests RevBy: Pertti Kellomaki --- tests/harmattan/testscripts/test-boot-mode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/harmattan/testscripts/test-boot-mode.py b/tests/harmattan/testscripts/test-boot-mode.py index 0c7e89d..01ee7ed 100644 --- a/tests/harmattan/testscripts/test-boot-mode.py +++ b/tests/harmattan/testscripts/test-boot-mode.py @@ -188,7 +188,7 @@ class BootModeTests(unittest.TestCase): time.sleep(3) st1, op1 = commands.getstatusoutput("grep '%s]: Daemon: Already in boot mode' /var/log/syslog " %pid) debug("The log msg is %s" %op1) - self.assert_(st == 0, "Seems that SIGUSR2 was not send") + self.assert_(st1 == 0, "Seems that SIGUSR2 was not send") def test_SIGUSR1(self): """ @@ -209,7 +209,7 @@ class BootModeTests(unittest.TestCase): time.sleep(3) st1, op1 = commands.getstatusoutput("grep '%s]: Daemon: Exited boot mode.' /var/log/syslog " %daemon_pid) debug("The log msg is %s" %op1) - self.assert_(st == 0, "Seems that SIGUSR1 was not send") + self.assert_(st1 == 0, "Seems that SIGUSR1 was not send") #Get pids for boosters pid_q_1 = wait_for_app("booster-q") @@ -227,7 +227,7 @@ class BootModeTests(unittest.TestCase): time.sleep(3) st1, op1 = commands.getstatusoutput("grep '%s]: Daemon: Already in normal mode.' /var/log/syslog " %daemon_pid) debug("The log msg is %s" %op1) - self.assert_(st == 0, "Seems that SIGUSR1 was not send") + self.assert_(st1 == 0, "Seems that SIGUSR1 was not send") if __name__ == '__main__':