All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: fstests@vger.kernel.org
Subject: [PATCH 9/9] fstests: make lsqa.pl work with SPDX tags
Date: Sat,  9 Jun 2018 11:55:40 +1000	[thread overview]
Message-ID: <20180609015540.19385-10-david@fromorbit.com> (raw)
In-Reply-To: <20180609015540.19385-1-david@fromorbit.com>

From: Dave Chinner <dchinner@redhat.com>

The regex matches used to dump the test headers are no longer valid,
so update them to work with the new test header format.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 lsqa.pl | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lsqa.pl b/lsqa.pl
index dd45eeda4e2c..8ca1167f845c 100755
--- a/lsqa.pl
+++ b/lsqa.pl
@@ -95,9 +95,11 @@ sub get_qa_header($) {
     open(my $FH, $f) || die "couldn't open '$f': $!";
     while (<$FH>) {
 	#ignore.
-	m/^#\!/    		and next; #shebang
-	m/^#\s*\-{10}/		and last; #dashed lines
-	m/^#\s*copyright/i 	and last; #copyright lines
+	m/^#\!/			and next; # shebang
+	m/^# SPDX/i		and next; # SPDX tags
+	m/^# Copyright/i	and next; # Copyright tags
+	m/^#\s*\-{10}/		and last; # dashed lines
+	m/^seq/i		and last; # test start
 
 	s/^# *//;
 
-- 
2.17.0


  parent reply	other threads:[~2018-06-09  1:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-09  1:55 [PATCH 0/9] fstests: Conversion of tests to SPDX license tags Dave Chinner
2018-06-09  1:55 ` [PATCH 1/9] fstests: Add LICENSES directory Dave Chinner
2018-06-09  1:55 ` [PATCH 2/9] common: convert to SPDX license tags Dave Chinner
2018-06-09  1:55 ` [PATCH 3/9] fstests: convert new test template to SPDX tags Dave Chinner
2018-06-09  1:55 ` [PATCH 8/9] fstests: convert top level files and tools to SPDX Dave Chinner
2018-06-09  1:55 ` Dave Chinner [this message]
2018-06-09  2:17 ` [PATCH 0/9] fstests: Conversion of tests to SPDX license tags Dave Chinner
2018-06-10 13:47   ` Eryu Guan

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=20180609015540.19385-10-david@fromorbit.com \
    --to=david@fromorbit.com \
    --cc=fstests@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.