# HG changeset patch # User Alain Mazy # Date 1650363256 -7200 # Node ID 038fb852e2be022c5dc6095d23151fe744ea7a0a # Parent 216231c18c2ebdbcbef042089f58edae1a2b2871 more debug info diff -r 216231c18c2e -r 038fb852e2be Tests/Tests.py --- a/Tests/Tests.py Wed Apr 13 10:59:57 2022 +0200 +++ b/Tests/Tests.py Tue Apr 19 12:14:16 2022 +0200 @@ -2430,10 +2430,15 @@ tmp = [ '-xs' ] with open(os.devnull, 'w') as FNULL: - subprocess.check_call([ FindExecutable('storescu') ] + tmp + - [ _REMOTE['Server'], str(_REMOTE['DicomPort']), - GetDatabasePath(image) ], - stderr = FNULL) + try: + subprocess.check_call([ FindExecutable('storescu') ] + tmp + + [ _REMOTE['Server'], str(_REMOTE['DicomPort']), + GetDatabasePath(image) ], + stderr = FNULL) + + except subprocess.CalledProcessError as e: + print('storescu failed with error code: %s' % str(e.returncode)) + raise e self.assertEqual(0, len(DoGet(_REMOTE, '/patients')))