Skip to content

Commit

Permalink
Test that workstation-bootstrap wheels are reproducible too
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Jan 10, 2024
1 parent ca81d0d commit 94f0c8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_reproducible_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ def test_wheel_builds_match_version_control(name):
# Check for new, untracked files. Test will fail if working copy is dirty
# in any way, so mostly useful in CI.
assert subprocess.check_output("git status --porcelain".split()) == b""


def test_workstation_bootstrap_wheels():
subprocess.check_call([
"./scripts/build-sync-wheels", "--pkg-dir", "./workstation-bootstrap",
"--project", "workstation-bootstrap"])
# Check for modified files (won't catch new, untracked files)
subprocess.check_call(["git", "diff", "--exit-code"])
# Check for new, untracked files.
assert subprocess.check_output(["git", "status", "--porcelain"]) == b""

0 comments on commit 94f0c8c

Please sign in to comment.