mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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 <dchinner@redhat.com>
This commit is contained in:
committed by
Dave Chinner
parent
f3e65e9150
commit
3805d7e97a
@@ -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/^# *//;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user