11//! Integration tests for Ignition config injection
22
3- use color_eyre:: Result ;
43use integration_tests:: integration_test;
4+ use itest:: TestResult ;
55use xshell:: cmd;
66
77use std:: fs;
@@ -23,7 +23,7 @@ const FCOS_IMAGE: &str = "quay.io/fedora/fedora-coreos:stable";
2323/// Note: We don't test actual Ignition application here because FCOS won't
2424/// apply Ignition configs in ephemeral mode (treats it as subsequent boot).
2525/// The config injection works correctly for custom bootc images with Ignition.
26- fn test_run_ephemeral_ignition_works ( ) -> Result < ( ) > {
26+ fn test_run_ephemeral_ignition_works ( ) -> TestResult {
2727 let sh = shell ( ) ?;
2828 let bck = get_bck_command ( ) ?;
2929 let label = INTEGRATION_TEST_LABEL ;
@@ -61,7 +61,7 @@ fn test_run_ephemeral_ignition_works() -> Result<()> {
6161integration_test ! ( test_run_ephemeral_ignition_works) ;
6262
6363/// Test that Ignition config validation rejects nonexistent files
64- fn test_run_ephemeral_ignition_invalid_path ( ) -> Result < ( ) > {
64+ fn test_run_ephemeral_ignition_invalid_path ( ) -> TestResult {
6565 let sh = shell ( ) ?;
6666 let bck = get_bck_command ( ) ?;
6767 let label = INTEGRATION_TEST_LABEL ;
@@ -98,7 +98,7 @@ fn test_run_ephemeral_ignition_invalid_path() -> Result<()> {
9898integration_test ! ( test_run_ephemeral_ignition_invalid_path) ;
9999
100100/// Test that Ignition is rejected for images that don't support it
101- fn test_run_ephemeral_ignition_unsupported_image ( ) -> Result < ( ) > {
101+ fn test_run_ephemeral_ignition_unsupported_image ( ) -> TestResult {
102102 let sh = shell ( ) ?;
103103 let bck = get_bck_command ( ) ?;
104104 let label = INTEGRATION_TEST_LABEL ;
0 commit comments