From 838a5a9a8aef4470ec303df7d15b4d0c77dcd66d Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Tue, 3 Sep 2024 10:40:58 +0100 Subject: [PATCH] Exit with correct return code on api testing --- testing/api/test_api | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/api/test_api b/testing/api/test_api index 6751ae0ad..c1d3c19f7 100755 --- a/testing/api/test_api +++ b/testing/api/test_api @@ -41,10 +41,11 @@ sudo cp testing/api/system.json local/system.json # Needs to be sudo because this invokes bin/testrun sudo venv/bin/python3 -m pytest -v testing/api/test_api.py +return_code=$? # Clean up network interfaces after use sudo docker network rm endev0 sudo ip link del dev endev0a sudo ip link del dev dummynet -exit $? \ No newline at end of file +exit $return_code \ No newline at end of file