Package: libapache2-mod-python Version: 3.5.0.7-1 Severity: normal Tags: patch
I reproduced an autopkgtest failure where the smoke test updates apache2.conf and then immediately curls the test URLs. With service apache2 reload, Apache can still serve hello.py as a static file instead of using the updated mod_python handler configuration. Restarting apache2 after updating the config fixes the issue, and the smoke autopkgtest passes locally with this change. I attached a patch changing the test from service apache2 reload to service apache2 restart.
From d66eea4f742c4a1feee67e77cef3cfaf22e59993 Mon Sep 17 00:00:00 2001 From: Zineb Zaadoud <[email protected]> Date: Mon, 15 Jun 2026 11:41:30 +0200 Subject: [PATCH] Restart apache2 in smoke autopkgtest --- debian/tests/smoke | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/tests/smoke b/debian/tests/smoke index 9f6f818..f0dfbab 100644 --- a/debian/tests/smoke +++ b/debian/tests/smoke @@ -50,8 +50,8 @@ EOT echo "INFO: enable apache2 python module" a2enmod python -echo "INFO: reloading apache2 service" -service apache2 reload +echo "INFO: restarting apache2 service" +service apache2 restart test_WHEN_mod_python_handler_is_called_SHOULD_return_output() { -- 2.43.0

