public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2] skipfile: allow regular expressions
Date: Mon, 22 Jan 2018 16:19:26 +0100	[thread overview]
Message-ID: <20180122151926.GA16105@rei> (raw)
In-Reply-To: <1516089674-16119-1-git-send-email-daniel.sangorrin@toshiba.co.jp>

Hi!
> --- a/runltp
> +++ b/runltp
> @@ -692,10 +692,11 @@ main()
>      fi
>  
>      # Blacklist or skip tests if a SKIPFILE was specified with -S
> +    # The SKIPFILE can contain regular expressions (e.g.: cron.*)
>      if [ -n "${SKIPFILE}" ]; then
>          for test_name in $(awk '{print $1}' "${SKIPFILE}"); do
>              case "${test_name}" in \#*) continue;; esac
> -            sed -i "/\<${test_name}\>/c\\${test_name} exit 32;" alltests
> +            sed -i "s/^\(${test_name}\)\s.*/\1 exit 32;/" alltests
>          done
>      fi

Looks good, but please update runltplite.sh as well.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2018-01-22 15:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-16  8:01 [LTP] [PATCH v2] skipfile: allow regular expressions Daniel Sangorrin
2018-01-22 15:19 ` Cyril Hrubis [this message]
2018-01-30  7:15   ` Daniel Sangorrin
2018-02-07 15:32     ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180122151926.GA16105@rei \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox