mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
Merge pull request #3075 from cgwalters/reenable-composefs
tests: Use ext4, re-enable composefs test
This commit is contained in:
commit
d788c5b5c9
@ -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*'
|
||||
|
@ -131,15 +131,21 @@ 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") {
|
||||
println!("SKIP no composefs support");
|
||||
return Ok(());
|
||||
}
|
||||
let mark = match crate::test::get_reboot_mark()? {
|
||||
None => {
|
||||
if !cmd!(sh, "ostree --version").read()?.contains("- composefs") {
|
||||
println!("SKIP no composefs support");
|
||||
return Ok(());
|
||||
}
|
||||
{
|
||||
let fstype = cmd!(sh, "stat -f / -c %T").read()?;
|
||||
if fstype.trim() == "xfs" {
|
||||
println!("SKIP no xfs fsverity yet");
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
cmd!(
|
||||
sh,
|
||||
"ostree --repo=/ostree/repo config set ex-integrity.composefs true"
|
||||
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user