# HG changeset patch # User Alain Mazy # Date 1742288280 -3600 # Node ID 93b7e398121a806c91c0872cb71bf1f9a64041d1 # Parent 1d3b3a702a4adaa85c61a7262fde3ed2f12e2541 make sure to catch the exit code of PG upgrade integ tests diff -r 1d3b3a702a4a -r 93b7e398121a NewTests/PostgresUpgrades/test_pg_upgrades.py --- 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