mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-01-08 15:03:06 -06:00
dbbfad2503
Extract the tests to be run and generate the matrix dynamically to avoid needing to update the list within the workflow for each test added.
15 lines
225 B
Awk
15 lines
225 B
Awk
BEGIN {
|
|
printf "["
|
|
previous=""
|
|
}
|
|
match($0, /@test "(.*)" \{/, arr) {
|
|
if ( previous != "" ) {
|
|
printf "%s, ",previous
|
|
}
|
|
previous = sprintf("\"%s\"", arr[1])
|
|
}
|
|
END {
|
|
printf "%s",previous
|
|
print "]"
|
|
}
|