From a49c47b04e8df8e686d499a9a70a98948967b7fc Mon Sep 17 00:00:00 2001 From: Sean Marlow Date: Fri, 4 Dec 2020 09:42:37 -0600 Subject: [PATCH] Split kernel command line args before compare. This removes descrepencies in white space due to placement of multipath arg. --- .../lib/img_proof/tests/SLES/test_sles_multipath_off.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/share/lib/img_proof/tests/SLES/test_sles_multipath_off.py b/usr/share/lib/img_proof/tests/SLES/test_sles_multipath_off.py index 29eb7e97..976b865e 100644 --- a/usr/share/lib/img_proof/tests/SLES/test_sles_multipath_off.py +++ b/usr/share/lib/img_proof/tests/SLES/test_sles_multipath_off.py @@ -1,3 +1,4 @@ def test_sles_multipath_off(host): - kernel_cmdline = host.file('/proc/cmdline') - assert kernel_cmdline.contains(' multipath=off ') + kernel_cmdline = host.run('cat /proc/cmdline') + args = kernel_cmdline.stdout.split() + assert 'multipath=off' in args