def __checkDoneProcessing(ext, nPanels): # Assuming 1sec per panel is enough for Flix to be done processing if ext != 'mov': timeout = nPanels else: timeout = nPanels*30 if not sikuliUtils.waitUntilGone('processing.png', timeout): log('importPanelsCheck: Still processing after %s seconds; may need to increase the timeout.' % timeout, 'error') sikuliUtils.waitUntilGone('processing.png', timeout)
def doneProcessing(testInfo, timeout, methodName="methodName"): """Waits until the 'Processing' thumbnail is gone :param testInfo: TestInfo object :param timeout: Maximum time (in seconds) before returning if images are still being processed :param methodName: Name of the method calling me, useful for logging :return: None """ if sikuliUtils.waitUntilGone("processing.png", timeout) == 0: log("%s: still processing after %s seconds." % (methodName, timeout), "error") else: log("- Flix has finished processing thumbnails")