Skip to content

Commit 103b13d

Browse files
committed
test(publish): Split package_selection into nightly/stable
1 parent 6061553 commit 103b13d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

tests/testsuite/publish.rs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3398,7 +3398,7 @@ You may press ctrl-c to skip waiting; the crate should be available shortly.
33983398
}
33993399

34003400
#[cargo_test]
3401-
fn package_selection() {
3401+
fn package_selection_nightly() {
34023402
let registry = registry::RegistryBuilder::new().http_api().build();
34033403
let p = project()
34043404
.file(
@@ -3473,6 +3473,24 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
34733473
"#]])
34743474
.with_stdout_data(str![[r#""#]])
34753475
.run();
3476+
}
3477+
3478+
#[cargo_test]
3479+
fn package_selection() {
3480+
let registry = registry::RegistryBuilder::new().http_api().build();
3481+
let p = project()
3482+
.file(
3483+
"Cargo.toml",
3484+
r#"
3485+
[workspace]
3486+
members = ["a", "b"]
3487+
"#,
3488+
)
3489+
.file("a/Cargo.toml", &basic_manifest("a", "0.1.0"))
3490+
.file("a/src/lib.rs", "#[test] fn a() {}")
3491+
.file("b/Cargo.toml", &basic_manifest("b", "0.1.0"))
3492+
.file("b/src/lib.rs", "#[test] fn b() {}")
3493+
.build();
34763494

34773495
p.cargo("publish --no-verify --dry-run --package a --package b")
34783496
.replace_crates_io(registry.index_url())

0 commit comments

Comments
 (0)