diff --git a/tests/TestScripts/test-security.py b/tests/TestScripts/test-security.py index 545bd76..765e261 100644 --- a/tests/TestScripts/test-security.py +++ b/tests/TestScripts/test-security.py @@ -65,7 +65,7 @@ class SecurityTests(unittest.TestCase): req_creds.sort() self.assert_(creds == req_creds, - "fala_ft_hello has differnt creds set!") + "fala_ft_hello has different creds set!") def test_003_invoker_creds(self): """ diff --git a/tests/TestScripts/utils.py b/tests/TestScripts/utils.py index 200a3f9..2200277 100644 --- a/tests/TestScripts/utils.py +++ b/tests/TestScripts/utils.py @@ -173,10 +173,10 @@ def launch_and_get_creds(path): """ # try launch the specified application - handle = run_app_with_launcher(path) + handle = run_app_as_user(path) # sleep for a moment to allow applauncherd to start the process - time.sleep(5) + time.sleep(3) # with luck, the process should have correct name by now pid = get_pid(path) @@ -187,8 +187,6 @@ def launch_and_get_creds(path): print "couldn't launch %s" % basename(path) return None - #self.assert_(pid != None, "Couldn't launch %s" % basename(path)) - creds = get_creds(pid = pid) kill_process(path)