From 9c0571b6046b995d2610dbd794a4de35d9984a9f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 11 Jun 2024 17:28:58 -0400 Subject: [PATCH] tests: Debug ENOSPC --- .github/workflows/ci.yml | 2 +- tests-integration/src/hostpriv.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f2aae6a9..a31529d64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: df -h / sudo install -m 0755 target/release/tests-integration /usr/bin/bootc-integration-tests rm target -rf - df -h / + df -h / /var/tmp # Nondestructive but privileged tests sudo bootc-integration-tests host-privileged localhost/bootc # Finally the install-alongside suite diff --git a/tests-integration/src/hostpriv.rs b/tests-integration/src/hostpriv.rs index c3e9cbab5..d35227e58 100644 --- a/tests-integration/src/hostpriv.rs +++ b/tests-integration/src/hostpriv.rs @@ -23,6 +23,7 @@ fn test_loopback_install(image: &'static str) -> Result<()> { tmpdisk.as_file_mut().set_len(size)?; let tmpdisk = tmpdisk.into_temp_path(); let tmpdisk = tmpdisk.to_str().unwrap(); + cmd!(sh, "df -h /var/tmp").ignore_status().run()?; cmd!(sh, "sudo {base_args...} -v {tmpdisk}:/disk {image} bootc install to-disk --via-loopback --skip-fetch-check /disk").run()?; Ok(()) }