X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=tools%2Fmark-untested;h=1dd8db2cb889030d2ee45c9baef17df2f1f9871c;hp=d88d24a8d656554da4a11af3286faba2d80bd12c;hb=c7bbb99395c9e10a0b09995528e04da4dfadba05;hpb=73aaa11833e35b28c84696f4d69739adbb14467d diff --git a/tools/mark-untested b/tools/mark-untested index d88d24a..1dd8db2 100755 --- a/tools/mark-untested +++ b/tools/mark-untested @@ -17,7 +17,7 @@ case $1 in if [ ! -f "$b" ]; then continue fi - grep '#####:' "$i" | grep -vE '(NOTEST|UNTESTED|:######|}\$$|:$|:[ ]*(\||\$))' | + grep '#####:' "$i" | grep -vE '(NOTEST|UNTESTED|: *##|}\$$|:$|:[ ]*(\||\$))' | awk -F: '{printf "%ds,$, // UNTESTED,\n", $2}' | sed -i -e 's,[ ]*// UNTESTED$,,' -f - "$b" grep '[0-8]: *[1-9][0-9]*:.*// NOTEST$' "$i" |