diff options
author | Andrei Pavel <andrei@isc.org> | 2020-12-11 20:13:47 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2020-12-14 11:08:39 +0100 |
commit | 270c0fc05f15d1f0523791d91ccbd78d8c9da65d (patch) | |
tree | ba3447a999f92ed47d4b1a224c4341e0edb0bbba /src/lib/testutils | |
parent | [#1574] fix version_test if --version isn't tested (diff) | |
download | kea-270c0fc05f15d1f0523791d91ccbd78d8c9da65d.tar.xz kea-270c0fc05f15d1f0523791d91ccbd78d8c9da65d.zip |
[#1574] failing tests now interrupt `make check`
Diffstat (limited to 'src/lib/testutils')
-rw-r--r-- | src/lib/testutils/dhcp_test_lib.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/testutils/dhcp_test_lib.sh.in b/src/lib/testutils/dhcp_test_lib.sh.in index 47b2ff107e..4a4ef51ce5 100644 --- a/src/lib/testutils/dhcp_test_lib.sh.in +++ b/src/lib/testutils/dhcp_test_lib.sh.in @@ -201,6 +201,11 @@ test_finish() { # Reset traps. traps_off + + # Explicitly return ${exit_code}. The effect should be for `make check` to + # return with the exit same code or at least another non-zero exit code thus + # reporting a failure. + return "${exit_code}" } # Stores the configuration specified as a parameter in the configuration |