def test_gds(self):
    if ('waive_gds' in self.config['project']):
        logging.info(('skipping GDS in this test due to %s' % self.config['project']['waive_gds']))
        return
    conf = self.config['gds']
    gds_file = os.path.abspath(os.path.join(self.directory, conf['directory'], conf['gds_filename']))
    gdsii = gdspy.GdsLibrary(infile=gds_file)
    toplevel = gdsii.top_level()[0]
    if (self.system_config['tests']['gds']['metal5_id'] in toplevel.get_layers()):
        logging.error(('%s has layers on metal5' % gds_file))
        exit(1)
    logging.info('GDS pass')
def test_gds(self):
    if ('waive_gds' in self.config['project']):
        logging.info(('skipping GDS in this test due to %s' % self.config['project']['waive_gds']))
        return
    conf = self.config['gds']
    gds_file = os.path.abspath(os.path.join(self.directory, conf['directory'], conf['gds_filename']))
    gdsii = gdspy.GdsLibrary(infile=gds_file)
    toplevel = gdsii.top_level()[0]
    if (self.system_config['tests']['gds']['metal5_id'] in toplevel.get_layers()):
        logging.error(('%s has layers on metal5' % gds_file))
        exit(1)
    logging.info('GDS pass')