From c4ffc07e40447ecf58d23f87417ae36fa007f843 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 30 Oct 2023 21:25:11 +0800 Subject: [PATCH] TESTS: print log when test error --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 895f1342b2..c44da7059e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -198,7 +198,7 @@ jobs: - name: Run SRS regression-test run: | docker run --rm srs:test bash -c './objs/srs -c conf/regression-test.conf && \ - cd 3rdparty/srs-bench && (./objs/srs_test -test.v || tail -n 100 ../../objs/srs.log) && ./objs/srs_gb28181_test -test.v' + cd 3rdparty/srs-bench && (./objs/srs_test -test.v || (tail -n 100 ../../objs/srs.log && exit -1)) && ./objs/srs_gb28181_test -test.v' runs-on: ubuntu-20.04 coverage: