Changeset 9d10997 in mod_gnutls


Ignore:
Timestamp:
Oct 3, 2020, 6:00:52 PM (10 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master
Children:
1b07bd1
Parents:
801b4f6
Message:

Fill gaps in numbering when creating new tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/newtest

    r801b4f6 r9d10997  
    1212
    1313    tname="${TEST_NAME// /_}"
    14     newnum="$(( $(ls -d tests/* | sed 's|^[^/]*/\([0-9]*\)_.*|\1|' | sort -n | tail -n 1 | sed s/^0//) + 1))"
     14    declare -i newnum=0
     15    while [ -d tests/$(printf "%02d_*" "${newnum}") ]; do
     16        newnum=$((newnum + 1))
     17    done
    1518    newname="$(printf "%02d_%s" "${newnum}" "$tname")"
    1619
Note: See TracChangeset for help on using the changeset viewer.