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 Feb 6, 2024
1 parent 6e39c77 commit 89754a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_reproducible_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,19 @@ 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(["/usr/bin/git", "diff", "--exit-code"])
# Check for new, untracked files.
assert subprocess.check_output(["/usr/bin/git", "status", "--porcelain"]) == b""

0 comments on commit 89754a1

Please sign in to comment.