+ raise AssertionError('%s failed (%d): %s' % (testcmd, process.returncode, process.output))
+
+ if process.returncode != 0:
+ raise AssertionError('%s failed (%d): %s' % (testcmd, process.returncode, output))
+
+ if os.stat(outFile.name).st_size == 0:
+ # if tickets have been disabled, or if the session ticket encryption key is exactly the same, we might not get a new ticket
+ if not allowNoTicket:
+ raise AssertionError('%s failed (%d) to write a session to the output file: %s' % (testcmd, process.returncode, output))
+ else:
+ shutil.copyfile(outFile.name, ticketFileOut)