From 4f3930632ca0cde0afa233d7345f8ddb19c4c37c Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Fri, 12 Oct 2012 00:48:32 +0100 Subject: [PATCH] Make sure sleep can be found Some systems have only /usr/bin/sleep and no links. (like Arch) Change-Id: I406dd72ba1a4669966ee58e110aee43ddf723b4a --- nova/tests/test_nova_rootwrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/tests/test_nova_rootwrap.py b/nova/tests/test_nova_rootwrap.py index ea4daa8a0ad4..10d5286135b5 100644 --- a/nova/tests/test_nova_rootwrap.py +++ b/nova/tests/test_nova_rootwrap.py @@ -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]