mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
check scripts: handle unintialized driver vars in check-driverimpls.pl
Current script confuses on lines like this: static virHypervisorDriver parallelsHypervisorDriver; It interprets next lines as if there is open brace. Let's filter this case from matches. Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
489c4c688d
commit
1ccaf39402
@ -67,7 +67,7 @@ while (<>) {
|
||||
$status = 1;
|
||||
}
|
||||
}
|
||||
} elsif (/^(?:static\s+)?(vir(?:\w+)?Driver)\s+/) {
|
||||
} elsif (/^(?:static\s+)?(vir(?:\w+)?Driver)\s+(?!.*;)/) {
|
||||
next if $1 eq "virNWFilterCallbackDriver" ||
|
||||
$1 eq "virNWFilterTechDriver" ||
|
||||
$1 eq "virConnectDriver";
|
||||
|
Loading…
Reference in New Issue
Block a user