Skip to content

Commit 5d0403c

Browse files
committed
integration: run git checkout in git repo!
1 parent 0a79d65 commit 5d0403c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,20 @@ fn integration_test_rustc() {
175175
.strip_prefix("commit-hash: ")
176176
.expect("failed parsing commit line");
177177

178+
dbg!(&commit);
178179
// check out the commit in the rustc repo to ensure clippy is compatible
179180

180181
let st_git_checkout = Command::new("git")
181182
.arg("checkout")
182183
.arg(commit)
184+
.current_dir("rust")
183185
.status()
184186
.expect("git failed to check out commit");
185187
assert!(st_git_checkout.success());
186188

187189
let root_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
188190
let target_dir = std::path::Path::new(&root_dir).join("target");
189-
let clippy_binary = target_dir.join(env!("PROFILE")).join(CARGO_CLIPPY);
191+
// let clippy_binary = target_dir.join(env!("PROFILE")).join(CARGO_CLIPPY);
190192

191193
// we need to make sure that `x.py clippy` picks up our self-built clippy
192194
// try to make the target dir discoverable as PATH

0 commit comments

Comments
 (0)