path: 389-ds-base_3.1.2+dfsg1-1/dirsrvtests/tests/suites/logging/security_basic_test.py # Get ldapmodify pid result = subprocess.check_output(['pidof','ldapmodify']) ldapmodify_pid = ensure_str(result) path: 389-ds-base_3.1.2+dfsg1-1/dirsrvtests/tests/suites/basic/basic_test.py dse_file = topology_st.standalone.confdir + '/dse.ldif' pid = check_output(['pidof', '-s', 'ns-slapd']).strip() # We can't guarantee we have access to sudo in any environment ... Either # run py.test with sudo, or as the same user as the dirsrv.