]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
.github/workflows/runner.yml: trap(1) to see the testsuite log
authorAlejandro Colomar <alx@kernel.org>
Wed, 21 Feb 2024 14:14:45 +0000 (15:14 +0100)
committerAlejandro Colomar <alx@kernel.org>
Mon, 4 Mar 2024 00:43:25 +0000 (01:43 +0100)
Otherwise, 'cat testsuite.log' isn't run, since 'set -e' aborts the
script earlier.

Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
.github/workflows/runner.yml

index 2f0f99633bc5363b74604c3e3519d5504b32f8b4..5a1fef4ae3239227be24811aff4437ccb885c71d 100644 (file)
@@ -49,8 +49,9 @@ jobs:
       run: |
         set -e
         cd tests
+        trap 'cat testsuite.log' ERR
         sudo ./run_some
-        cat testsuite.log
+        trap - ERR
 
   # Make sure that 'make dist' makes a usable tarball with no missing files
   dist-build: