Skip to content

Commit

Permalink
Output test log file to console when test fails
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Motičák <peter.moticak@pantheon.tech>
  • Loading branch information
pemoticak committed Aug 15, 2023
1 parent 14f14bb commit 9e87064
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/testing/100-mock-cnf-module/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

test:
@make exec-test || (make dump-logs-ignore-errors && make stop-example-ignore-errors && exit 1)
@make exec-test || (make dump-logs-ignore-errors && cat ${LOGFILE} && make stop-example-ignore-errors && exit 1)

dump-logs-ignore-errors:
@make dump-logs || true
Expand Down
2 changes: 1 addition & 1 deletion examples/testing/110-mock-cnf-standalone/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

test:
@make exec-test || (make dump-logs-ignore-errors && make stop-example-ignore-errors && exit 1)
@make exec-test || (make dump-logs-ignore-errors && cat ${LOGFILE} && make stop-example-ignore-errors && exit 1)

dump-logs-ignore-errors:
@make dump-logs || true
Expand Down

0 comments on commit 9e87064

Please sign in to comment.