浏览代码

Fix up build automation of editor tests

Get editor tests running by passing through all needed files
/main
Alex Lian 7 年前
当前提交
badac7dc
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 11
      build.py

11
build.py


# helper function for preparations of tests
def copy_path_to_project(path, repo_path, project_path, logger):
logger.info("Copying {}".format(path))
shutil.copytree(os.path.join(repo_path, path), os.path.join(project_path, "Assets", path))
shutil.copytree(os.path.join(repo_path, path), os.path.join(project_path, "Assets", "ScriptableRenderLoop", path))
def copy_file_to_project(path, repo_path, project_path, logger):
logger.info("Copying {}".format(path))
shutil.copy(os.path.join(repo_path, path), os.path.join(project_path, "Assets", "ScriptableRenderLoop", path))
copy_file_to_project("SRPMARKER", repo_path, project_path, logger)
copy_file_to_project("SRPMARKER.meta", repo_path, project_path, logger)
copy_file_to_project("ImageTemplates.meta", repo_path, project_path, logger)
copy_file_to_project("Tests.meta", repo_path, project_path, logger)
if __name__ == "__main__":
import sys

正在加载...
取消
保存