core.add_remote(i) tmp = glob.dic.get(i.name) + ' verif' core.checkout_remote(i, tmp) #core.add_commit(tmp, 'sync ' + i.name + ' to ' + fullchip.name) os.chdir(core.url) #for i in os.listdir('.'): # if os.path.isdir(i) and 'csr' in os.listdir(i): # for j in os.listdir(os.path.join(i, 'csr')): # if re.match(r'.+_pb.txt', j): # os.system('tools/gcsr -b ' + i + '/csr/' + j + ' -rtl -m ' + i) #core.add_commit('common', 'sync shell') #sv_protect() core.recover_file(glob.dir_recover) core.add_commit('.', 'sync modules but not protect sv files') core.remove_remote() core.git_push() os.chdir(fullchip.url) for i in os.listdir('.'): if (i not in ['common', 'tools', 'fullchip', 'verif'] and os.path.isdir(i) and i[0] != '.'): os.system('rm -rf ' + i) os.chdir('verif') for i in os.listdir('.'): if (i != 'fullchip'): os.system('rm -rf ' + i) os.chdir(fullchip.url) for i in glob.module_wkspc: fullchip.add_remote(i) tmp = glob.dic.get(i.name) + ' verif' fullchip.checkout_remote(i, tmp)