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:
parent
b77629df01
commit
4f3930632c
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user