File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ debugged_script="$top_srcdir/test/example/bug-loc.sh"
11
11
if ( pygmentize --version || pygmentize -V ) 2> /dev/null 1> /dev/null ; then
12
12
run_debugger_opts=" -B -q --no-init --highlight=light"
13
13
(cd $srcdir && run_debugger " $debugged_script " 2>&1 > " $TEST_FILE " < /dev/null)
14
- # We're removing highlighted lines with ESC characters because Pygments is often changing the highlighting
15
- /usr/bin/grep -v -E ' .*' " $TEST_FILE " > " ${TEST_FILTERED_FILE} "
16
- /usr/bin/grep -v -E ' .*' " $RIGHT_FILE " > " ${RIGHT_FILTERED_FILE} "
14
+ # We're removing highlighted lines because Pygments is often changing the highlighting
15
+ /usr/bin/grep -v -E " ^[0-9]+:" $' \t ' " $TEST_FILE " > " ${TEST_FILTERED_FILE} "
16
+ /usr/bin/grep -v -E " ^[0-9]+:" $' \t ' " $RIGHT_FILE " > " ${RIGHT_FILTERED_FILE} "
17
+
18
+ cat " $RIGHT_FILTERED_FILE "
19
+ cat " $TEST_FILTERED_FILE "
17
20
18
21
check_output " $TEST_FILTERED_FILE " " $RIGHT_FILTERED_FILE "
19
22
rc=$?
20
23
if (( 0 == rc)) ; then
21
- rm -f $TEST_FILE
24
+ rm -f $TEST_FILTERED_FILE
22
25
rm -f $RIGHT_FILTERED_FILE
23
26
fi
24
27
You can’t perform that action at this time.
0 commit comments