changeset 799:93b7e398121a

make sure to catch the exit code of PG upgrade integ tests
author Alain Mazy <am@orthanc.team>
date Tue, 18 Mar 2025 09:58:00 +0100
parents 1d3b3a702a4a
children fb7b30e74577
files NewTests/PostgresUpgrades/test_pg_upgrades.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NewTests/PostgresUpgrades/test_pg_upgrades.py	Tue Mar 18 09:29:59 2025 +0100
+++ b/NewTests/PostgresUpgrades/test_pg_upgrades.py	Tue Mar 18 09:58:00 2025 +0100
@@ -71,6 +71,8 @@
         subprocess.run(["docker", "compose", "stop", "orthanc-pg-15-under-tests"], check=True)
         time.sleep(2)
 
+    
+    # test a full upgrade from a very old version, and a downgrade to the previous version (where we run the integration tests)
     def test_upgrades_downgrades_with_pg_15(self):
 
         # remove everything including the DB from previous tests
@@ -144,10 +146,11 @@
         o.wait_started()
 
         # time.sleep(10000)
-        subprocess.run(["docker", "compose", "up", "orthanc-tests"], check=True)
+        subprocess.run(["docker", "compose", "up", "orthanc-tests", "--exit-code-from", "orthanc-tests"], check=True)
 
 
 
+    # make sure we can still start a new Orthanc with an Old PG server
     def test_latest_orthanc_with_pg_9(self):
 
         # remove everything including the DB from previous tests