From: Dave Chinner Date: Sat, 9 Jun 2018 01:45:38 +0000 (+1000) Subject: fstests: make lsqa.pl work with SPDX tags X-Git-Tag: v2022.05.01~1498 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3805d7e97a9e62993bd6229cc73a50ec7b5fc84b;p=users%2Fhch%2Fxfstests-dev.git fstests: make lsqa.pl work with SPDX 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 --- diff --git a/lsqa.pl b/lsqa.pl index dd45eeda4..8ca1167f8 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/^# *//;