From 183bd8ca0342f6f72630afcb42b453b88ee90ac6 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 26 Feb 2016 08:45:06 +0100 Subject: [PATCH] tests: skip on older version Skip with older driver version. Update address. --- test/shell/dmstats-create.sh | 5 ++--- test/shell/dmstats-report.sh | 8 +++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/shell/dmstats-create.sh b/test/shell/dmstats-create.sh index d5db79f45..028bec72f 100644 --- a/test/shell/dmstats-create.sh +++ b/test/shell/dmstats-create.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2009-2011 Red Hat, Inc. All rights reserved. +# Copyright (C) 2016 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions @@ -7,7 +7,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, -# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . lib/inittest @@ -24,4 +24,3 @@ dmstats create --start 0 --len 1 "$dev1" dmstats create --segments "$dev1" dmstats create --precise "$dev1" dmstats create --bounds 10ms,20ms,30ms "$dev1" - diff --git a/test/shell/dmstats-report.sh b/test/shell/dmstats-report.sh index c36e3ebbe..702ea6155 100644 --- a/test/shell/dmstats-report.sh +++ b/test/shell/dmstats-report.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2009-2011 Red Hat, Inc. All rights reserved. +# Copyright (C) 2016 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions @@ -7,10 +7,13 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, -# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . lib/inittest +# Don't attempt to test stats with driver < 4.33.00 +aux driver_at_least 4 33 || skip + # ensure we can create devices (uses dmsetup, etc) aux prepare_devs 1 @@ -21,4 +24,3 @@ dmstats create --bounds 10ms,20ms,30ms "$dev1" dmstats report dmstats report --count 1 dmstats report --histogram - -- 2.43.5