Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Add more documentation and debug prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBailey committed Apr 22, 2023
1 parent 471a058 commit 1a0a18b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tools/tests/populate_and_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,21 @@
def test_populate_and_build():
""" Setup a clean project, then populate and build it.
"""
# Remove any existing test artifact, then copy the test project over.
shutil.rmtree(PROJECT_PATH, ignore_errors=True)
assert shutil.copytree(SOURCE_PATH, PROJECT_PATH)

subprocess.run([APROJ_EXE,"populate", PROJECT_PATH], check=True)
subprocess.run([APROJ_EXE,"build", PROJECT_PATH], check=True)
# Populate the project.
result = subprocess.run([APROJ_EXE,"populate", PROJECT_PATH], capture_output=True, text=True, check=False)
print(result.stdout)
print(result.stderr)
assert result.returncode == 0

# Build the project.
result = subprocess.run([APROJ_EXE,"build", PROJECT_PATH], capture_output=True, text=True, check=False)
print(result.stdout)
print(result.stderr)
assert result.returncode == 0


if __name__ == "__main__":
Expand Down

0 comments on commit 1a0a18b

Please sign in to comment.