From 91ce39e2a6c6e3fd38a1617c81fd454f93240ecc Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 7 Aug 2019 09:36:37 +0100 Subject: [PATCH] tests: Ensure that the test pipeline fails With the addition of commands after running the integration tests the exit code of the tests were lost. Signed-off-by: Rob Bradford --- scripts/run_integration_tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index 646aab118..e27b28353 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -129,8 +129,11 @@ sudo adduser $USER kvm newgrp kvm << EOF cargo test --features "integration_tests" EOF +RES=$? # Tear VFIO test network down sudo ip link del vfio-br0 sudo ip link del vfio-tap0 sudo ip link del vfio-tap1 + +exit $RES