vagrant-libvirt/tests/parse_tests.awk

15 lines
225 B
Awk
Raw Normal View History

BEGIN {
printf "["
previous=""
}
match($0, /@test "(.*)" \{/, arr) {
if ( previous != "" ) {
printf "%s, ",previous
}
previous = sprintf("\"%s\"", arr[1])
}
END {
printf "%s",previous
print "]"
}