Skip to content

Commit

Permalink
tests: print error message to ease test failures
Browse files Browse the repository at this point in the history
Dump the error message, which gets only shown in the output on failure,
to ease debugging failures.
  • Loading branch information
cgzones committed Dec 21, 2024
1 parent 6e9eb18 commit 2b8d3f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/functional/end-to-end.bats
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ test_report_format_impl() {
@test "custom_fc_macros" {
run ${SELINT_PATH} -c configs/default.conf -s policies/misc/fc_macros.fc
count=$(echo ${output} | grep -o "E-002" | wc -l)
echo ${output}
[ "$count" -eq 1 ]
run ${SELINT_PATH} -c configs/fc_macros.conf -s policies/misc/fc_macros.fc
count=$(echo ${output} | grep -o "E-002" | wc -l)
Expand Down

0 comments on commit 2b8d3f5

Please sign in to comment.