diff options
| author | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2012-10-12 00:48:32 +0100 |
|---|---|---|
| committer | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2012-10-12 01:54:27 +0100 |
| commit | 4f3930632ca0cde0afa233d7345f8ddb19c4c37c (patch) | |
| tree | 484842e4b34adb6fa2eb07d77ff3226801b4380e | |
| parent | b77629df01396adc55aa7024b4d3b1380849cae0 (diff) | |
Make sure sleep can be found
Some systems have only /usr/bin/sleep and no links. (like Arch)
Change-Id: I406dd72ba1a4669966ee58e110aee43ddf723b4a
| -rw-r--r-- | nova/tests/test_nova_rootwrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_nova_rootwrap.py b/nova/tests/test_nova_rootwrap.py index ea4daa8a0..10d528613 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] |
