From 1a07354f5cf9d6d10e48475279bfd5cc055fb9d3 Mon Sep 17 00:00:00 2001
From: Lulu <morgan@parity.io>
Date: Mon, 14 Aug 2023 16:31:13 +0100
Subject: [PATCH] Don't publish test crates (#7588)

---
 polkadot/node/subsystem-test-helpers/Cargo.toml                | 1 +
 polkadot/node/test/client/Cargo.toml                           | 1 +
 polkadot/node/test/performance-test/Cargo.toml                 | 1 +
 polkadot/node/test/service/Cargo.toml                          | 1 +
 polkadot/parachain/test-parachains/adder/Cargo.toml            | 1 +
 polkadot/parachain/test-parachains/adder/collator/Cargo.toml   | 1 +
 polkadot/parachain/test-parachains/halt/Cargo.toml             | 1 +
 polkadot/parachain/test-parachains/undying/Cargo.toml          | 1 +
 polkadot/parachain/test-parachains/undying/collator/Cargo.toml | 1 +
 polkadot/primitives/test-helpers/Cargo.toml                    | 1 +
 polkadot/runtime/test-runtime/Cargo.toml                       | 1 +
 polkadot/runtime/test-runtime/constants/Cargo.toml             | 1 +
 polkadot/utils/remote-ext-tests/bags-list/Cargo.toml           | 1 +
 polkadot/xcm/xcm-executor/integration-tests/Cargo.toml         | 1 +
 14 files changed, 14 insertions(+)

diff --git a/polkadot/node/subsystem-test-helpers/Cargo.toml b/polkadot/node/subsystem-test-helpers/Cargo.toml
index 81bc19a1303..adb0587370e 100644
--- a/polkadot/node/subsystem-test-helpers/Cargo.toml
+++ b/polkadot/node/subsystem-test-helpers/Cargo.toml
@@ -1,6 +1,7 @@
 [package]
 name = "polkadot-node-subsystem-test-helpers"
 description = "Subsystem traits and message definitions"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/node/test/client/Cargo.toml b/polkadot/node/test/client/Cargo.toml
index 33c240443d0..aac46bd4b8f 100644
--- a/polkadot/node/test/client/Cargo.toml
+++ b/polkadot/node/test/client/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 name = "polkadot-test-client"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/node/test/performance-test/Cargo.toml b/polkadot/node/test/performance-test/Cargo.toml
index c6d0ce7f7ec..1bddc6b0870 100644
--- a/polkadot/node/test/performance-test/Cargo.toml
+++ b/polkadot/node/test/performance-test/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 name = "polkadot-performance-test"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/node/test/service/Cargo.toml b/polkadot/node/test/service/Cargo.toml
index 08e9e3889b0..8912e19306e 100644
--- a/polkadot/node/test/service/Cargo.toml
+++ b/polkadot/node/test/service/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 name = "polkadot-test-service"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/parachain/test-parachains/adder/Cargo.toml b/polkadot/parachain/test-parachains/adder/Cargo.toml
index 5e1b9a7d174..d2b2224328a 100644
--- a/polkadot/parachain/test-parachains/adder/Cargo.toml
+++ b/polkadot/parachain/test-parachains/adder/Cargo.toml
@@ -6,6 +6,7 @@ edition.workspace = true
 license.workspace = true
 version.workspace = true
 authors.workspace = true
+publish = false
 
 [dependencies]
 parachain = { package = "polkadot-parachain", path = "../../", default-features = false, features = [ "wasm-api" ] }
diff --git a/polkadot/parachain/test-parachains/adder/collator/Cargo.toml b/polkadot/parachain/test-parachains/adder/collator/Cargo.toml
index 08dcbcaa644..fad51a863a1 100644
--- a/polkadot/parachain/test-parachains/adder/collator/Cargo.toml
+++ b/polkadot/parachain/test-parachains/adder/collator/Cargo.toml
@@ -1,6 +1,7 @@
 [package]
 name = "test-parachain-adder-collator"
 description = "Collator for the adder test parachain"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/parachain/test-parachains/halt/Cargo.toml b/polkadot/parachain/test-parachains/halt/Cargo.toml
index 99076aae6aa..85ee5d99d89 100644
--- a/polkadot/parachain/test-parachains/halt/Cargo.toml
+++ b/polkadot/parachain/test-parachains/halt/Cargo.toml
@@ -2,6 +2,7 @@
 name = "test-parachain-halt"
 description = "Test parachain which executes forever"
 build = "build.rs"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/parachain/test-parachains/undying/Cargo.toml b/polkadot/parachain/test-parachains/undying/Cargo.toml
index 43cb1bc37fd..030032e7754 100644
--- a/polkadot/parachain/test-parachains/undying/Cargo.toml
+++ b/polkadot/parachain/test-parachains/undying/Cargo.toml
@@ -2,6 +2,7 @@
 name = "test-parachain-undying"
 description = "Test parachain for zombienet integration tests"
 build = "build.rs"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/parachain/test-parachains/undying/collator/Cargo.toml b/polkadot/parachain/test-parachains/undying/collator/Cargo.toml
index 5b5656efb4a..b0118555506 100644
--- a/polkadot/parachain/test-parachains/undying/collator/Cargo.toml
+++ b/polkadot/parachain/test-parachains/undying/collator/Cargo.toml
@@ -5,6 +5,7 @@ edition.workspace = true
 license.workspace = true
 version.workspace = true
 authors.workspace = true
+publish = false
 
 [[bin]]
 name = "undying-collator"
diff --git a/polkadot/primitives/test-helpers/Cargo.toml b/polkadot/primitives/test-helpers/Cargo.toml
index a1f7f9268b9..b43bac1e855 100644
--- a/polkadot/primitives/test-helpers/Cargo.toml
+++ b/polkadot/primitives/test-helpers/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 name = "polkadot-primitives-test-helpers"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/runtime/test-runtime/Cargo.toml b/polkadot/runtime/test-runtime/Cargo.toml
index 76bd63d5946..41fbebb39f3 100644
--- a/polkadot/runtime/test-runtime/Cargo.toml
+++ b/polkadot/runtime/test-runtime/Cargo.toml
@@ -1,6 +1,7 @@
 [package]
 name = "polkadot-test-runtime"
 build = "build.rs"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/runtime/test-runtime/constants/Cargo.toml b/polkadot/runtime/test-runtime/constants/Cargo.toml
index 9b435da8068..15ab1dbdd4f 100644
--- a/polkadot/runtime/test-runtime/constants/Cargo.toml
+++ b/polkadot/runtime/test-runtime/constants/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 name = "test-runtime-constants"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml b/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml
index 772efb1eddd..c84c95ab049 100644
--- a/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml
+++ b/polkadot/utils/remote-ext-tests/bags-list/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 name = "remote-ext-tests-bags-list"
+publish = false
 version.workspace = true
 authors.workspace = true
 edition.workspace = true
diff --git a/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml b/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml
index d2af1304beb..18a729e082d 100644
--- a/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml
+++ b/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml
@@ -5,6 +5,7 @@ authors.workspace = true
 edition.workspace = true
 license.workspace = true
 version.workspace = true
+publish = false
 
 [dependencies]
 frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
-- 
GitLab