diff mbox

Support xfstest -x group command line option

Message ID 1484125203-12175-1-git-send-email-amir73il@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Amir Goldstein Jan. 11, 2017, 9 a.m. UTC
Note that while kvm-xfstests -X <test> is NOT equivalent to
the check -X command line option, kvm-xfstests -x <group> is
exactly the same as check -x <group>.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
 kvm-xfstests/util/parse_cli | 4 ++++
 1 file changed, 4 insertions(+)

Also via github pull request:
https://github.com/tytso/xfstests-bld/pull/3

Comments

Amir Goldstein Jan. 31, 2017, 2:44 a.m. UTC | #1
ping

On Wed, Jan 11, 2017 at 11:00 AM, Amir Goldstein <amir73il@gmail.com> wrote:
> Note that while kvm-xfstests -X <test> is NOT equivalent to
> the check -X command line option, kvm-xfstests -x <group> is
> exactly the same as check -x <group>.
>
> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
> ---
>  kvm-xfstests/util/parse_cli | 4 ++++
>  1 file changed, 4 insertions(+)
>
> Also via github pull request:
> https://github.com/tytso/xfstests-bld/pull/3
>
> diff --git a/kvm-xfstests/util/parse_cli b/kvm-xfstests/util/parse_cli
> index b42c8ba..0956ebb 100644
> --- a/kvm-xfstests/util/parse_cli
> +++ b/kvm-xfstests/util/parse_cli
> @@ -26,6 +26,7 @@ print_help ()
>      fi
>      echo "     -o opts         - Extra kernel command line options"
>      echo "     -r ram          - Specify memory to be used in megabytes"
> +    echo "     -x group        - Exclude group of tests from running"
>      echo "     -X test         - Exclude test from running"
>      echo "     --kernel file   - Boot the specified kernel"
>      if test "$GCE_XFSTESTS" != "yes" ; then
> @@ -155,6 +156,9 @@ while [ "$1" != "" ]; do
>         -g) shift
>             FSTESTSET="$FSTESTSET,-g,$1"
>             ;;
> +       -x) shift
> +           FSTESTSET="$FSTESTSET,-x,$1"
> +           ;;
>         -h|--help|help)
>             print_help
>             ;;
> --
> 2.7.4
>
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/kvm-xfstests/util/parse_cli b/kvm-xfstests/util/parse_cli
index b42c8ba..0956ebb 100644
--- a/kvm-xfstests/util/parse_cli
+++ b/kvm-xfstests/util/parse_cli
@@ -26,6 +26,7 @@  print_help ()
     fi
     echo "	-o opts		- Extra kernel command line options"
     echo "	-r ram		- Specify memory to be used in megabytes"
+    echo "	-x group	- Exclude group of tests from running"
     echo "	-X test		- Exclude test from running"
     echo "	--kernel file	- Boot the specified kernel"
     if test "$GCE_XFSTESTS" != "yes" ; then
@@ -155,6 +156,9 @@  while [ "$1" != "" ]; do
 	-g) shift
 	    FSTESTSET="$FSTESTSET,-g,$1"
 	    ;;
+	-x) shift
+	    FSTESTSET="$FSTESTSET,-x,$1"
+	    ;;
 	-h|--help|help)
 	    print_help
 	    ;;