Skip to content

Commit

Permalink
Merge pull request #483 from freedomofpress/wbwr
Browse files Browse the repository at this point in the history
Test that workstation-bootstrap wheels are reproducible too
  • Loading branch information
eloquence authored Feb 21, 2024
2 parents 4e7236a + 89754a1 commit 20301ec
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 20301ec

Please sign in to comment.