Update uninstall assertion to allow exit code 2

master
Orsiris de Jong 2026-08-11 19:13:28 +02:00 committed by GitHub
parent 7d182d64c3
commit 537b18901d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -346,7 +346,8 @@ function oneTimeTearDown () {
echo ""
echo "Uninstalling osync from $FAKEROOT"
$SUDO_CMD ./install.sh --remove --no-stats --prefix="$FAKEROOT"
assertEquals "Uninstall failed" "0" $?
res=$?
assertTrue "Uninstall failed" '[ $res -eq 0 -o $res -eq 2 ]'
ELAPSED_TIME=$((SECONDS-START_TIME))
echo "It took $ELAPSED_TIME seconds to run these tests."