Skip to content

Commit 3856abe

Browse files
authored
integration-tests: use itest::TestResult instead of color_eyre (#238)
Signed-off-by: gursewak1997 <gursmangat@gmail.com>
1 parent 5404561 commit 3856abe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/integration-tests/src/tests/run_ephemeral_ignition.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Integration tests for Ignition config injection
22
3-
use color_eyre::Result;
43
use integration_tests::integration_test;
4+
use itest::TestResult;
55
use xshell::cmd;
66

77
use 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<()> {
6161
integration_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<()> {
9898
integration_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

Comments
 (0)