diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2020-02-14 13:07:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 13:07:14 +0000 |
commit | 409fec2a48f454600936eb674da0611566c5a286 (patch) | |
tree | 7671ded4bf3293392a49400fe3ff36155e549b46 /show-expected-fail-tests.sh | |
parent | b6ea1bc67ab51667b9e139dd05e0778aca025501 (diff) |
Add whitelist/blacklist maintenance complainer to buildkite annotations (#870)
Diffstat (limited to 'show-expected-fail-tests.sh')
-rwxr-xr-x | show-expected-fail-tests.sh | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/show-expected-fail-tests.sh b/show-expected-fail-tests.sh index d3872ad5..9cd51b00 100755 --- a/show-expected-fail-tests.sh +++ b/show-expected-fail-tests.sh @@ -76,14 +76,30 @@ while read -r test_name; do fi done <<< "${passed_but_expected_fail}" +# TODO: Check that the same test doesn't exist in both the whitelist and blacklist +# TODO: Check that the same test doesn't appear twice in the whitelist|blacklist + +# Trim test output strings +tests_to_add=$(echo -e $tests_to_add | xargs) +already_in_whitelist=$(echo -e $already_in_whitelist | xargs) + +# Format output with markdown for buildkite annotation rendering purposes +if [ -n "${tests_to_add}" ] && [ -n "${already_in_whitelist}" ]; then + echo "### 📜 SyTest Whitelist Maintenance" +fi + if [ -n "${tests_to_add}" ]; then - echo "ERROR: The following passed tests are not present in $2. Please append them to the file:" + echo "**ERROR**: The following tests passed but are not present in \`$2\`. Please append them to the file:" + echo "\`\`\`" echo -e "${tests_to_add}" + echo "\`\`\`" fi if [ -n "${already_in_whitelist}" ]; then - echo "WARN: Tests in the whitelist still marked as expected fail:" + echo "**WARN**: Tests in the whitelist still marked as **expected fail**:" + echo "\`\`\`" echo -e "${already_in_whitelist}" + echo "\`\`\`" fi exit ${fail_build} |