Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Oct 7, 2024
1 parent 2f75c46 commit b19f311
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/flatmanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit b19f311

Please sign in to comment.