diff --git a/scripts/installtests/root_auto_update_repo_test.go b/scripts/installtests/root_auto_update_repo_test.go index 9f229b5716..fff2deb1ef 100644 --- a/scripts/installtests/root_auto_update_repo_test.go +++ b/scripts/installtests/root_auto_update_repo_test.go @@ -234,7 +234,10 @@ ENABLE_AUTO_UPDATES=true print_info() { printf 'INFO %s\n' "$*"; } print_warn() { printf 'WARN %s\n' "$*"; } print_success() { printf 'SUCCESS %s\n' "$*"; } -for fn in print_header check_root detect_os check_docker_environment offer_existing_auto_updates run_upgrade_readiness_preflight backup_existing create_user download_pulse setup_directories setup_update_command ensure_systemd_service_installed create_marker_file; do +# Server-unit admission/replacement has its own connected main/archive/source +# controls. Keep it inert with the other server operations in this extracted- +# main fixture, whose subject is optional updater setup and failure completion. +for fn in print_header check_root detect_os check_docker_environment offer_existing_auto_updates run_upgrade_readiness_preflight preflight_systemd_service_installation backup_existing create_user download_pulse setup_directories setup_update_command ensure_systemd_service_installed create_marker_file; do eval "$fn() { :; }" done check_existing_installation() { CURRENT_VERSION=v6.5.0; return 0; } diff --git a/scripts/tests/test_auto_update_systemd.py b/scripts/tests/test_auto_update_systemd.py index 307860fab6..77dc550559 100644 --- a/scripts/tests/test_auto_update_systemd.py +++ b/scripts/tests/test_auto_update_systemd.py @@ -679,11 +679,11 @@ else: sys.exit(97) original_write = Path.write_text def relocate(path, data, *args, **kwargs): if path.name == "installer-definitions": - # Relocate only the production destination. Keep its real - # private staging, checked writes and atomic publication in - # this connected signature/archive/recovery control too. + # Relocate both the shared admission and writer destination. + # Keep real name selection, refusal, private staging, checked + # writes and atomic publication in this connected control. before = 'local service_path="/etc/systemd/system/$SERVICE_NAME.service"' - self.assertEqual(data.count(before), 1) + self.assertEqual(data.count(before), 2) data = data.replace(before, 'local service_path="$PULSE_NATIVE_ROOT/pulse-source-updater.service"') return original_write(path, data, *args, **kwargs) try: