Make sure sleep can be found

Some systems have only /usr/bin/sleep and no links. (like Arch)

Change-Id: I406dd72ba1a4669966ee58e110aee43ddf723b4a
This commit is contained in:
Stanislaw Pitucha 2012-10-12 00:48:32 +01:00
parent b77629df01
commit 4f3930632c

View File

@ -66,7 +66,7 @@ class RootwrapTestCase(test.TestCase):
@test.skip_if(not os.path.exists("/proc/%d" % os.getpid()),
"Test requires /proc filesystem (procfs)")
def test_KillFilter(self):
p = subprocess.Popen(["/bin/sleep", "5"])
p = subprocess.Popen(["sleep", "5"])
f = filters.KillFilter("root", "/bin/sleep", "-9", "-HUP")
f2 = filters.KillFilter("root", "/usr/bin/sleep", "-9", "-HUP")
usercmd = ['kill', '-ALRM', p.pid]