From 3dc237306e8f20b1f8af52efef92abf7530147cc Mon Sep 17 00:00:00 2001 From: bezmuth Date: Mon, 15 Aug 2022 13:37:55 +0100 Subject: dino: simplify checkPhase --- .../networking/instant-messengers/dino/default.nix | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'pkgs/applications/networking') diff --git a/pkgs/applications/networking/instant-messengers/dino/default.nix b/pkgs/applications/networking/instant-messengers/dino/default.nix index 1e8f23e189def..3cee984d95d65 100644 --- a/pkgs/applications/networking/instant-messengers/dino/default.nix +++ b/pkgs/applications/networking/instant-messengers/dino/default.nix @@ -77,20 +77,11 @@ stdenv.mkDerivation rec { doCheck = true; checkPhase = '' - echo "================= Running built tests =================" - set -x - ./xmpp-vala-test - TEST1=$? - ./signal-protocol-vala-test - TEST2=$? - set +x - if [ $TEST1 != 0 ] || [ $TEST2 != 0 ]; then - echo "tests failed" - exit 1; - else - echo "tests succeeded" - fi - echo "================= /Running built tests =================" + runHook preCheck + set -e + ./xmpp-vala-test + ./signal-protocol-vala-test + runHook postCheck ''; # Dino looks for plugins with a .so filename extension, even on macOS where -- cgit 1.4.1