This repository was archived by the owner on Aug 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -18,22 +18,19 @@ LINT_MD="$TEST_DIR/../bin/lint-md"
1818echo " Testing good.md ..."
1919diff <( " $LINT_MD " " $TEST_DIR /good.md" --no-color 2>&1 ) " $TEST_DIR /good.expected.md"
2020EXIT_GOOD=$?
21- echo " good.md -> $EXIT_GOOD "
2221
2322echo " Testing bad.md ..."
2423diff <( " $LINT_MD " " $TEST_DIR /bad.md" --no-color 2>&1 ) " $TEST_DIR /bad.expected.md"
2524EXIT_BAD=$?
26- echo " bad.md -> $EXIT_BAD "
2725
2826echo " Testing a-bad-filename.expected.md ..."
2927diff <( " $LINT_MD " " $TEST_DIR /a-bad-filename.md" --no-color 2>&1 ) " $TEST_DIR /a-bad-filename.expected.md"
3028EXIT_BAD_FILENAME=$?
31- echo " a-bad-filename.md -> $EXIT_BAD_FILENAME "
3229
3330# Fail if either diff failed.
3431# This if will fall apart quickly as we add more test cases.
3532# Need to consider some type of looping, etc possibly.
3633if [ " $EXIT_GOOD " -ne " 0" ] || [ " $EXIT_BAD " -ne " 0" ] || [ " $EXIT_BAD_FILENAME " -ne " 0" ]; then
37- echo " One or more tests failed! $EXIT_GOOD $EXIT_BAD $EXIT_BAD_FILENAME "
34+ echo " One or more tests failed! Good: $EXIT_GOOD Bad: $EXIT_BAD Bad Filename: $EXIT_BAD_FILENAME "
3835 exit 1
3936fi
You can’t perform that action at this time.
0 commit comments