diff --git a/tests/flatmanager.sh b/tests/flatmanager.sh index c694e435..1de25b45 100755 --- a/tests/flatmanager.sh +++ b/tests/flatmanager.sh @@ -38,7 +38,7 @@ if [ "$GITHUB_ACTIONS" = "true" ]; then fi if [ -z "$GITHUB_ACTIONS" ]; then - echo "org.flatpak.Builder//localtest is not installed. Trying to build" + echo "Not inside GitHub CI. Trying to build org.flatpak.Builder//localtest" flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo if [ -d "build/org.flatpak.Builder" ]; then @@ -113,20 +113,14 @@ fi if [ "${test_code}" = "test_passed" ]; then printf "\n\n" echo "Tests passed ✅✅" - exit_code=0 + exit 0 elif [ -z "${tests_run}" ]; then echo "Tests did not run 🚨🚨" - exit_code=1 + exit 1 elif [ "${test_code}" = "test_failed" ]; then echo "Tests failed 🚨🚨" - exit_code=1 + exit 1 else echo "Error occurred 🚨🚨" - exit_code=1 -fi - -if [ "${exit_code}" -eq 1 ]; then - exit 0 -else exit 1 fi