From cafb76b635e4ef6dc279f65f47f64b3967172641 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 6 Apr 2022 17:03:46 -0400 Subject: Increase verbosity and sequencing of APIv2 testing The default verbosity level does not show the classes or function names. This makes it difficult to debug problems like hangs. Also, separate the bats and python-based tests into two sections. This allows for easier debugging, since isolation can be done in `runner.sh` rather than mucking with the `Makefile`. Lastly, update the logformatter script to `autoflush stdout` (thanks @edsantiago). Signed-off-by: Chris Evich --- contrib/cirrus/logformatter | 3 +++ contrib/cirrus/runner.sh | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/cirrus/logformatter b/contrib/cirrus/logformatter index 3c52e612b..05f05dc0b 100755 --- a/contrib/cirrus/logformatter +++ b/contrib/cirrus/logformatter @@ -20,6 +20,9 @@ use warnings; our $VERSION = '0.1'; +# Autoflush stdout +$| = 1; + # For debugging, show data structures using DumpTree($var) #use Data::TreeDumper; $Data::TreeDumper::Displayaddress = 0; diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh index 8f956d7f5..aee9bcfbb 100755 --- a/contrib/cirrus/runner.sh +++ b/contrib/cirrus/runner.sh @@ -59,8 +59,11 @@ function _run_unit() { function _run_apiv2() { _bail_if_test_can_be_skipped test/apiv2 - source .venv/requests/bin/activate - make localapiv2 |& logformatter + ( + make localapiv2-bash + source .venv/requests/bin/activate + make localapiv2-python + ) |& logformatter } function _run_compose() { -- cgit v1.2.3-54-g00ecf