Skip to content

Commit

Permalink
tests: Use ext4, re-enable composefs test
Browse files Browse the repository at this point in the history
Until the XFS fsverity stuff lands.
  • Loading branch information
cgwalters committed Oct 13, 2023
1 parent 824ac1a commit e2706b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ cosaPod(runAsUser: 0, memory: "9Gi", cpu: "4") {
mv installed/rootfs/* overrides/rootfs/
rm installed -rf
coreos-assembler fetch
# For composefs
echo 'rootfs: "ext4verity"' >> src/config/image.yaml
coreos-assembler build
coreos-assembler buildextend-metal
coreos-assembler buildextend-metal4k
Expand Down
2 changes: 2 additions & 0 deletions ci/prow/fcos-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ cd $(mktemp -d)
cosa init https://github.com/coreos/fedora-coreos-config/
rsync -rlv /cosa/component-install/ overrides/rootfs/
cosa fetch
# For composefs
echo 'rootfs: "ext4verity"' >> src/config/image.yaml
cosa build
# For now, Prow just runs the composefs tests, since Jenkins covers the others
#cosa kola run 'ext.ostree.destructive-rs.composefs*'
1 change: 0 additions & 1 deletion tests/inst/src/composefs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ fn verify_composefs_signed(sh: &xshell::Shell, metadata: &glib::VariantDict) ->
Ok(())
}

#[allow(dead_code)]
pub(crate) fn itest_composefs() -> Result<()> {
let sh = &xshell::Shell::new()?;
if !cmd!(sh, "ostree --version").read()?.contains("- composefs") {
Expand Down
2 changes: 1 addition & 1 deletion tests/inst/src/insttestmain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TESTS: &[StaticTest] = &[
];
const DESTRUCTIVE_TESTS: &[StaticTest] = &[
test!(destructive::itest_transactionality),
// test!(composefs::itest_composefs),
test!(composefs::itest_composefs),
];

#[derive(Debug, StructOpt)]
Expand Down

0 comments on commit e2706b9

Please sign in to comment.