From 891b4c569e52c7d125e758117815d4c248b6aec0 Mon Sep 17 00:00:00 2001 From: Christian Couder <chriscool@tuxfamily.org> Date: Sat, 24 Oct 2015 11:22:53 +0200 Subject: [PATCH] coverage_helper: better group long and short options License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- test/sharness_test_coverage_helper.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/sharness_test_coverage_helper.sh b/test/sharness_test_coverage_helper.sh index 102f41c5f..99bcb7dbf 100755 --- a/test/sharness_test_coverage_helper.sh +++ b/test/sharness_test_coverage_helper.sh @@ -148,7 +148,6 @@ process_command() { egrep "$PATTERN" "$CMD_RES" >"$CMD_OUT.txt" reverse "$CMD_OUT.txt" | sed -e 's/^sharness\///' | cut -d- -f1 | uniq -c >>"$GLOBAL_REV" - echo "$NAME" >>"$GLOBAL_REV" fi } @@ -159,10 +158,14 @@ do log "Processing $LONG_CMD" process_command $LONG_CMD + LONG_NAME="$NAME" log "Processing $SHORT_CMD" process_command $SHORT_CMD + SHORT_NAME="$NAME" + test -n "$SHORT_CMD" && echo "$SHORT_NAME" >>"$GLOBAL_REV" + test "$LONG_CMD" != "ipfs" && echo "$LONG_NAME" >>"$GLOBAL_REV" echo >>"$GLOBAL_REV" done -- GitLab