tests/integration/integration_setup.py
def reset_workspace_dir(config: dict):
	'''Resets the system workspace storage directory to an empty skeleton'''

	glob_list = glob(os.path.join(config['configfile']['global']['workspace_dir'],'*'))
	if not glob_list:
		return
	
	for glob_item in glob_list:
		if os.path.isfile(glob_item):
			try:
				os.remove(glob_item)
			except:
				assert False, f"Unable to delete file {glob_item}"
		else:
			try:
				shutil.rmtree(glob_item)
			except:
				assert False, f"Unable to delete file {glob_item}"
	
	os.mkdir(os.path.join(config['configfile']['global']['workspace_dir'],'tmp'))
Resets the system workspace storage directory to an empty skeleton
Resets the system workspace storage directory to an empty skeleton
Resets the system workspace storage directory to an empty skeleton
def reset_workspace_dir(config: dict):
	glob_list = glob(os.path.join(config['configfile']['global']['workspace_dir'],'*'))
	if not glob_list:
		return
	for glob_item in glob_list:
		if os.path.isfile(glob_item):
			try:
				os.remove(glob_item)
			except:
				assert False, f"Unable to delete file {glob_item}"
		else:
			try:
				shutil.rmtree(glob_item)
			except:
				assert False, f"Unable to delete file {glob_item}"
	os.mkdir(os.path.join(config['configfile']['global']['workspace_dir'],'tmp'))
def reset_workspace_dir ( config : dict ) : glob_list = glob ( os . path . join ( config [ 'configfile' ] [ 'global' ] [ 'workspace_dir' ] , '*' ) ) if not glob_list : return for glob_item in glob_list : if os . path . isfile ( glob_item ) : try : os . remove ( glob_item ) except : assert False , f"Unable to delete file {glob_item}" else : try : shutil . rmtree ( glob_item ) except : assert False , f"Unable to delete file {glob_item}" os . mkdir ( os . path . join ( config [ 'configfile' ] [ 'global' ] [ 'workspace_dir' ] , 'tmp' ) )
Resets the system workspace storage directory to an empty skeleton
Resets the system workspace storage directory to an empty skeleton
'''Resets the system workspace storage directory to an empty skeleton'''
config
dict