Changeset 1b07bd1 in mod_gnutls for test/newtest


Ignore:
Timestamp:
Oct 4, 2020, 6:19:01 AM (8 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio
Children:
59328d0
Parents:
9d10997
Message:

newtest: Let the user amend the test name if rejected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/newtest

    r9d10997 r1b07bd1  
    11#!/bin/bash
    22
    3 TEST_NAME="$1"
     3tname="${1// /_}"
    44
    55confirmed=0
    66
    77while [ "$confirmed" -eq 0 ]; do
     8    read -e -p "describe your new test briefly: " -i "${tname}" TEST_NAME
     9    tname="${TEST_NAME// /_}"
    810
    9     if [ -z "${TEST_NAME}" ]; then
    10         read -e -p "describe your new test briefly: " -i "$tname" TEST_NAME
    11     fi
    12 
    13     tname="${TEST_NAME// /_}"
    1411    declare -i newnum=0
    1512    while [ -d tests/$(printf "%02d_*" "${newnum}") ]; do
Note: See TracChangeset for help on using the changeset viewer.