Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 115bceb

Browse files
author
Jeremy Wiebe
committed
Trying to figure out why tests fail on circle
1 parent 4a9518b commit 115bceb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/test/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,22 @@ LINT_MD="$TEST_DIR/../bin/lint-md"
1818
echo "Testing good.md ..."
1919
diff <("$LINT_MD" "$TEST_DIR/good.md" --no-color 2>&1) "$TEST_DIR/good.expected.md"
2020
EXIT_GOOD=$?
21+
echo "good.md -> $EXIT_GOOD"
2122

2223
echo "Testing bad.md ..."
2324
diff <("$LINT_MD" "$TEST_DIR/bad.md" --no-color 2>&1) "$TEST_DIR/bad.expected.md"
2425
EXIT_BAD=$?
26+
echo "bad.md -> $EXIT_BAD"
2527

2628
echo "Testing a-bad-filename.expected.md ..."
2729
diff <("$LINT_MD" "$TEST_DIR/a-bad-filename.md" --no-color 2>&1) "$TEST_DIR/a-bad-filename.expected.md"
2830
EXIT_BAD_FILENAME=$?
31+
echo "a-bad-filename.md -> $EXIT_BAD_FILENAME"
2932

3033
# Fail if either diff failed.
3134
# This if will fall apart quickly as we add more test cases.
3235
# Need to consider some type of looping, etc possibly.
3336
if [ "$EXIT_GOOD" -ne "0" ] || [ "$EXIT_BAD" -ne "0" ] || [ "$EXIT_BAD_FILENAME" -ne "0" ]; then
34-
echo "One or more tests failed!"
37+
echo "One or more tests failed! $EXIT_GOOD $EXIT_BAD $EXIT_BAD_FILENAME"
3538
exit 1
3639
fi

0 commit comments

Comments
 (0)