Commit 0bcc36b6 authored by Sandipan Das's avatar Sandipan Das

Fix 'test_tools_smoke' from failing due to 'tools/wakeuptime'

This fixes 'test_tools_smoke' from failing on systems
running linux < 4.6 because of the wakeuptime script.
This script uses the bpf stack maps feature which is
available only for linux 4.6+. To avoid this, we skip
running it if the minimum kernel version requirement
is not met.
Signed-off-by: default avatarSandipan Das <sandipan@linux.vnet.ibm.com>
parent 3edb453f
...@@ -366,6 +366,7 @@ class SmokeTests(TestCase): ...@@ -366,6 +366,7 @@ class SmokeTests(TestCase):
def test_vfsstat(self): def test_vfsstat(self):
self.run_with_duration("vfsstat.py 1 1") self.run_with_duration("vfsstat.py 1 1")
@skipUnless(kernel_version_ge(4,6), "requires kernel >= 4.6")
def test_wakeuptime(self): def test_wakeuptime(self):
self.run_with_duration("wakeuptime.py 1") self.run_with_duration("wakeuptime.py 1")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment