| 49 | } |
| 50 | |
| 51 | fn git(root: &Path, args: &[&str]) { |
| 52 | let output = Command::new("git") |
| 53 | .args(args) |
| 54 | .current_dir(root) |
| 55 | .env("GIT_AUTHOR_NAME", "Generated Modify Tests") |
| 56 | .env("GIT_AUTHOR_EMAIL", "generated-modify@example.com") |
| 57 | .env("GIT_COMMITTER_NAME", "Generated Modify Tests") |
| 58 | .env("GIT_COMMITTER_EMAIL", "generated-modify@example.com") |
| 59 | .output() |
| 60 | .expect("run git"); |
| 61 | assert!( |
| 62 | output.status.success(), |
| 63 | "git {args:?} failed: {}", |
| 64 | String::from_utf8_lossy(&output.stderr) |
| 65 | ); |
| 66 | } |
| 67 | |
| 68 | /// A deterministic multi-package lockfile. `packages` drives both the line |
| 69 | /// count and the byte count. `bump_from` rewrites the versions of every |