Changes: Misc. fixes to test scripts

pull/1/head
Oskari Timperi 15 years ago
parent de45230d72
commit acb19d9c65

@ -65,7 +65,7 @@ class SecurityTests(unittest.TestCase):
req_creds.sort() req_creds.sort()
self.assert_(creds == req_creds, 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): def test_003_invoker_creds(self):
""" """

@ -173,10 +173,10 @@ def launch_and_get_creds(path):
""" """
# try launch the specified application # 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 # 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 # with luck, the process should have correct name by now
pid = get_pid(path) pid = get_pid(path)
@ -187,8 +187,6 @@ def launch_and_get_creds(path):
print "couldn't launch %s" % basename(path) print "couldn't launch %s" % basename(path)
return None return None
#self.assert_(pid != None, "Couldn't launch %s" % basename(path))
creds = get_creds(pid = pid) creds = get_creds(pid = pid)
kill_process(path) kill_process(path)

Loading…
Cancel
Save