aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2018-06-09 11:45:38 +1000
committerDave Chinner <david@fromorbit.com>2018-06-09 11:45:38 +1000
commit3805d7e97a9e62993bd6229cc73a50ec7b5fc84b (patch)
treedb9943e15da7e818a28f1d8d403a409f275b7140
parentf3e65e91503f07843f29dedbca1806a1fdb36aed (diff)
downloadxfstests-dev-spdx-tags.tar.gz
fstests: make lsqa.pl work with SPDX tagsspdx-tags
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>
-rwxr-xr-xlsqa.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lsqa.pl b/lsqa.pl
index dd45eeda4e..8ca1167f84 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/^# *//;