def change_yaml_files(check_dict):
 root = get_test_config_dir()
 keys = check_dict['yaml_files'].keys()
 check_dict['yaml_files'] = []
 for key in sorted(keys):
  if (not key.startswith('/')):
   check_dict['yaml_files'].append(key)
  if key.startswith(root):
   check_dict['yaml_files'].append(('...' + key[len(root):]))

def change_yaml_files ( check_dict ) : root = get_test_config_dir ( ) keys = check_dict [ 'yaml_files' ] . keys ( ) check_dict [ 'yaml_files' ] = [ ] for key in sorted ( keys ) : if ( not key . startswith ( '/' ) ) : check_dict [ 'yaml_files' ] . append ( key ) if key . startswith ( root ) : check_dict [ 'yaml_files' ] . append ( ( '...' + key [ len ( root ) : ] ) )
change the [yaml_files] property and remove the config path .