fatal ( 'Output: %s ' % output ) return False finally : test. join ( dmg_file_path, dmg_file_name )) test. fatal ( 'Closing/unmounting failed:' ) test. log ( 'Executing: %s ' % args ) try : output = subprocess. endSection () return True def closeDmg (): test. fatal ( 'Registering installer as AUT failed:' ) test.
startSection ( 'Register installer as AUT' ) args = test. endSection () return True def registerInstallerAsAUT (): test.
fatal ( 'Opening/mounting failed:' ) test.
expanduser ( '~/Downloads' ) dmg_file_name = 'squish-6.3.1-mac.dmg' installer_file_path = '/Volumes/froglogic Squish' installer_file_name = 'Install Squish' def openDmg (): test. Import os.path import subprocess # Adjust the following to your setup/needs: # In or relative to test suite folder: #dmg_file_path = squishinfo.testCase + '/.' # In or relative to current user's downloads folder: dmg_file_path = os.