From 04cb35e3f4ac6b1df22c83aceb058209ec1b37b3 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 7 Feb 2020 17:01:49 +0000 Subject: [PATCH] scripts: Make dev_cli.sh exit on test error Signed-off-by: Rob Bradford --- scripts/dev_cli.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index c2d8b6849..fe20cec8f 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -224,7 +224,7 @@ cmd_tests() { --volume /dev:/dev \ --volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \ "$CTR_IMAGE" \ - ./scripts/run_unit_tests.sh "$@" + ./scripts/run_unit_tests.sh "$@" || exit $? fi if [ "$cargo" = true ] ; then @@ -234,7 +234,7 @@ cmd_tests() { --rm \ --volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \ "$CTR_IMAGE" \ - ./scripts/run_cargo_tests.sh + ./scripts/run_cargo_tests.sh || exit $? fi if [ "$integration" = true ] ; then @@ -248,7 +248,7 @@ cmd_tests() { --volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" \ --volume "$CLH_INTEGRATION_WORKLOADS:$CTR_CLH_INTEGRATION_WORKLOADS" \ "$CTR_IMAGE" \ - ./scripts/run_integration_tests.sh "$@" + ./scripts/run_integration_tests.sh "$@" || exit $? fi }