From f3f01bb0dc4e320235357db4f16aff7da6b9b081 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 10 Apr 2016 20:05:34 +0000 Subject: [PATCH] input parsing --- urchin | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/urchin b/urchin index 859343a..f5e359b 100755 --- a/urchin +++ b/urchin @@ -680,24 +680,6 @@ want to run urchin on that directory.' >&2 fi fi - if $print_margins; then - if test "${format}" = tap; then - printf \#\ >> "${urchin_tmp}"/head - fi - if test "${format}" = urchin || test "${format}" = tap; then - echo Running tests at $(date +%Y-%m-%dT%H:%M:%S) >> "${urchin_tmp}"/head - fi - - if test "${format}" = tap; then - printf '# ' >> "${urchin_tmp}"/head - fi - if test "${format}" = urchin || test "${format}" = tap; then - printf 'Cycling with the following shells: ' >> "${urchin_tmp}"/head - fi - echo "${shell_list}" | tr "${HT}" \ >> "${urchin_tmp}"/head - echo >> "${urchin_tmp}"/head - fi - if is_set urchin_timeout; then # Choose the timeout command if timeout -t 0 true 2> /dev/null; then @@ -716,6 +698,13 @@ want to run urchin on that directory.' >&2 fi # -------------------- REALLY RUN -------------------- # + + # Write header information + echo Running tests at $(date +%Y-%m-%dT%H:%M:%S) >> "${urchin_tmp}"/head + printf 'Cycling with the following shells: ' >> "${urchin_tmp}"/head + echo "${shell_list}" | tr "${HT}" \ >> "${urchin_tmp}"/head + echo >> "${urchin_tmp}"/head + start=$("${epoch}") # 1 test file or folder to run