jbergstroem / hadolint-gh-action

A hadolint linter for github actions that provides code annotations (and more)
MIT License
12 stars 5 forks source link

Silence unecessary output in test suite #108

Closed jbergstroem closed 1 year ago

jbergstroem commented 1 year ago

This bugs me:

Running tests in test/e2e.sh
    Running test_annotate ... SUCCESS ✓
    Running test_bash_glob_expansion ... SUCCESS ✓
    Running test_custom_config ... SUCCESS ✓
    Running test_custom_dockerfile_path ... SUCCESS ✓
    Running test_custom_hadolint_path ... SUCCESS ✓
    Running test_custom_output_format ... SUCCESS ✓
    Running test_default_hadolint_config ... SUCCESS ✓
    Running test_default_path ... SUCCESS ✓
    Running test_default_path_with_dockerfile ... SUCCESS ✓
    Running test_disable_annotate ... SUCCESS ✓
    Running test_multiple_dockerfiles ... SUCCESS ✓
    Running test_output_with_nonzero_exit ... SUCCESS ✓
    Running test_override_errorlevel ... SUCCESS ✓
    Running test_version_output ... ::add-matcher::~/.github/problem-matcher.json

SUCCESS ✓
Running tests in test/unit.sh
    Running test_output_hadolint_version ... SUCCESS ✓
    Running test_validate_annotate ... SUCCESS ✓
    Running test_validate_error_level ... SUCCESS ✓
    Running test_validate_invalid_annotate ... SUCCESS ✓
    Running test_validate_invalid_error_level ... SUCCESS ✓
    Running test_validate_invalid_output_format ... SUCCESS ✓
    Running test_validate_output_format ... SUCCESS ✓
Overall result: SUCCESS ✓

The issue is how stdout is managed since I redirect output to emulate the CI environment.