Skip to content

Commit 154fdac

Browse files
committedJul 7, 2024
Auto merge of #14203 - weihanglo:fix-redaction, r=ehuss
test: relax redactions for rust-lang/rust To unblock submodule update in rust-lang/rust See <rust-lang/rust#127385 (comment)> and each commit message.
2 parents 036da81 + e491c06 commit 154fdac

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed
 

‎tests/testsuite/cfg.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ lib___.rlib
452452
[..]___.[..]
453453
[..]___.[..]
454454
[..]___.[..]
455-
[..]rust[..]
455+
[..]
456456
457457
458458
"#]])
@@ -470,7 +470,7 @@ lib___.rlib
470470
[..]___.[..]
471471
[..]___.[..]
472472
[..]___.[..]
473-
[..]rust[..]
473+
[..]
474474
[..],[..]
475475
___
476476
123

‎tests/testsuite/git_auth.rs

+3-24
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};
88
use std::sync::Arc;
99
use std::thread::{self, JoinHandle};
1010

11+
use cargo_test_support::basic_manifest;
1112
use cargo_test_support::git::cargo_uses_gitoxide;
1213
use cargo_test_support::paths;
13-
use cargo_test_support::{basic_manifest, project, str};
14+
use cargo_test_support::project;
1415

1516
fn setup_failed_auth_test() -> (SocketAddr, JoinHandle<()>, Arc<AtomicUsize>) {
1617
let server = TcpListener::bind("127.0.0.1:0").unwrap();
@@ -412,29 +413,7 @@ Caused by:
412413

413414
p.cargo("check -v")
414415
.with_status(101)
415-
.with_stderr_data(str![[r#"
416-
[UPDATING] git repository `ssh://needs-proxy.invalid/git`
417-
[RUNNING] `git fetch --verbose --force --update-head-ok [..]ssh://needs-proxy.invalid/git[..] [..]+HEAD:refs/remotes/origin/HEAD[..]`
418-
ssh: Could not resolve hostname needs-proxy.invalid: [..] not known
419-
fatal: Could not read from remote repository.
420-
421-
Please make sure you have the correct access rights
422-
and the repository exists.
423-
[ERROR] failed to get `foo` as a dependency of package `foo v0.0.0 ([ROOT]/foo)`
424-
425-
Caused by:
426-
failed to load source for dependency `foo`
427-
428-
Caused by:
429-
Unable to update ssh://needs-proxy.invalid/git
430-
431-
Caused by:
432-
failed to fetch into: [ROOT]/home/.cargo/git/db/git-[HASH]
433-
434-
Caused by:
435-
process didn't exit successfully: `git fetch --verbose --force --update-head-ok [..]ssh://needs-proxy.invalid/git[..] [..]+HEAD:refs/remotes/origin/HEAD[..]` ([EXIT_STATUS]: 128)
436-
437-
"#]])
416+
.with_stderr_contains("[..]Unable to update[..]")
438417
.with_stderr_does_not_contain("[..]try enabling `git-fetch-with-cli`[..]")
439418
.run();
440419
}

0 commit comments

Comments
 (0)