Skip to content

Commit b3117a1

Browse files
committed
updated test_strip_ansi_escape_codes.sh
1 parent 0917b82 commit b3117a1

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

tests/test_strip_ansi_escape_codes.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1515

1616
cd "$srcdir/..";
1717

18+
# shellcheck disable=SC1091
1819
. ./tests/utils.sh
1920

2021
section "Strip ANSI Escape Codes"
@@ -23,11 +24,11 @@ name="strip_ansi_escape_codes.py"
2324

2425
start_time=$(date +%s)
2526

26-
if is_mac; then
27-
cat_opts="-e"
28-
else
29-
cat_opts="-A"
30-
fi
27+
#if is_mac; then
28+
# cat_opts="-e"
29+
#else
30+
# cat_opts="-A"
31+
#fi
3132
run++
3233
if echo "some highlighted content" |
3334
grep --color=yes highlighted |
@@ -42,6 +43,7 @@ fi
4243
hr
4344

4445
tmp=$(mktemp /tmp/strip_ansi_escape_codes.XXXXX)
46+
# shellcheck disable=SC2064,SC2086
4547
trap "rm $tmp" $TRAP_SIGNALS
4648

4749
echo
@@ -62,6 +64,8 @@ tee /dev/stderr |
6264
fi
6365

6466
echo
67+
# $run_count defined in lib
68+
# shellcheck disable=SC2154
6569
echo "Total Tests run: $run_count"
6670
time_taken "$start_time" "All version tests for $name completed in"
6771
echo

0 commit comments

Comments
 (0)