|
15 | 15 | //! - Warning and continuing on failures |
16 | 16 |
|
17 | 17 | use color_eyre::Result; |
18 | | -use integration_tests::integration_test; |
19 | | -use linkme::distributed_slice; |
| 18 | +use integration_tests::{integration_test, parameterized_integration_test}; |
20 | 19 |
|
21 | 20 | use std::process::Command; |
22 | 21 | use std::thread; |
23 | 22 | use std::time::Duration; |
24 | 23 |
|
25 | | -use crate::{ |
26 | | - get_test_image, run_bcvk, ParameterizedIntegrationTest, INTEGRATION_TEST_LABEL, |
27 | | - PARAMETERIZED_INTEGRATION_TESTS, |
28 | | -}; |
| 24 | +use crate::{get_test_image, run_bcvk, INTEGRATION_TEST_LABEL}; |
29 | 25 |
|
30 | 26 | /// Test running a non-interactive command via SSH |
31 | 27 | fn test_run_ephemeral_ssh_command() -> Result<()> { |
@@ -130,13 +126,6 @@ fn test_run_ephemeral_ssh_exit_code() -> Result<()> { |
130 | 126 | } |
131 | 127 | integration_test!(test_run_ephemeral_ssh_exit_code); |
132 | 128 |
|
133 | | -#[distributed_slice(PARAMETERIZED_INTEGRATION_TESTS)] |
134 | | -static TEST_RUN_EPHEMERAL_SSH_CROSS_DISTRO_COMPATIBILITY: ParameterizedIntegrationTest = |
135 | | - ParameterizedIntegrationTest::new( |
136 | | - "run_ephemeral_ssh_cross_distro_compatibility", |
137 | | - test_run_ephemeral_ssh_cross_distro_compatibility, |
138 | | - ); |
139 | | - |
140 | 129 | /// Test SSH functionality across different bootc images |
141 | 130 | /// This parameterized test runs once per image in BCVK_ALL_IMAGES and verifies |
142 | 131 | /// that our systemd version compatibility fix works correctly with both newer |
@@ -190,6 +179,7 @@ fn test_run_ephemeral_ssh_cross_distro_compatibility(image: &str) -> Result<()> |
190 | 179 | } |
191 | 180 | Ok(()) |
192 | 181 | } |
| 182 | +parameterized_integration_test!(test_run_ephemeral_ssh_cross_distro_compatibility); |
193 | 183 |
|
194 | 184 | /// Test that /run is mounted as tmpfs and supports unix domain sockets |
195 | 185 | fn test_run_tmpfs() -> Result<()> { |
|
0 commit comments