From 537b18901d492af76991ad5501746a2ed42ea722 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Tue, 11 Aug 2026 19:13:28 +0200 Subject: [PATCH] Update uninstall assertion to allow exit code 2 --- dev/tests/run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/tests/run_tests.sh b/dev/tests/run_tests.sh index 245347b..38a0e89 100755 --- a/dev/tests/run_tests.sh +++ b/dev/tests/run_tests.sh @@ -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."