Skip to content

Commit

Permalink
doctest: Do not pass newline to "base64 -d"
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Feb 20, 2024
1 parent d6bcde3 commit c66ac9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ nfail=0
cd tmp/doctest
for file in */*.jou; do
# print file and line number, as in "doc/foo.md:123: "
echo -n "$(basename "$(dirname "$file")" | base64 -d):$(basename "$file" | cut -d'.' -f1): "
echo -n "$(basename "$(dirname "$file")" | tr -d '\n' | base64 -d):$(basename "$file" | cut -d'.' -f1): "

cp "$file" test.jou
if $DIFF --text -u $diff_color <(generate_expected_output test.jou | tr -d '\r') <( ("$jou" test.jou 2>&1 || true) | tr -d '\r'); then
Expand Down

0 comments on commit c66ac9f

Please sign in to comment.