Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/inst: Update to latest ostree-ext #3000

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/inst/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ serde_json = "1.0"
sh-inline = "0.4.0"
anyhow = "1.0"
tempfile = "3.1.0"
ostree-ext = { version = "0.9" }
ostree-ext = { version = "0.11" }
libtest-mimic = "0.5.0"
twoway = "0.2.1"
hyper = { version = "0.14", features = ["runtime", "http1", "http2", "tcp", "server"] }
Expand Down
8 changes: 4 additions & 4 deletions tests/inst/src/destructive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fn parse_and_validate_reboot_mark<M: AsRef<str>>(
generate_update(&firstdeploy.checksum)?;
// Update the target state
let srvrepo_obj = ostree::Repo::new(&gio::File::for_path(SRVREPO));
srvrepo_obj.open(gio::NONE_CANCELLABLE)?;
srvrepo_obj.open(gio::Cancellable::NONE)?;
commitstates.target = srvrepo_obj.resolve_rev(TESTREF, false)?.unwrap().into();
} else if commitstates.booted == commitstates.orig || commitstates.booted == commitstates.prev {
println!(
Expand Down Expand Up @@ -357,9 +357,9 @@ fn impl_transaction_test<M: AsRef<str>>(
// Gather the expected possible commits
let mut commitstates = {
let srvrepo_obj = ostree::Repo::new(&gio::File::for_path(SRVREPO));
srvrepo_obj.open(gio::NONE_CANCELLABLE)?;
srvrepo_obj.open(gio::Cancellable::NONE)?;
let sysrepo_obj = ostree::Repo::new(&gio::File::for_path("/sysroot/ostree/repo"));
sysrepo_obj.open(gio::NONE_CANCELLABLE)?;
sysrepo_obj.open(gio::Cancellable::NONE)?;

CommitStates {
booted: booted_commit.to_string(),
Expand Down Expand Up @@ -569,7 +569,7 @@ pub(crate) fn itest_transactionality() -> Result<()> {
sysroot.load(cancellable.as_ref())?;
assert!(sysroot.is_booted());
let booted = sysroot.booted_deployment().expect("booted deployment");
let commit: String = booted.csum().expect("booted csum").into();
let commit: String = booted.csum().into();
// We need this static across reboots
let srvrepo = Path::new(SRVREPO);
let firstrun = !srvrepo.exists();
Expand Down
4 changes: 2 additions & 2 deletions tests/inst/src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ pub(crate) fn itest_sysroot_ro() -> Result<()> {

let booted = sysroot.booted_deployment().expect("booted deployment");
assert!(!booted.is_staged());
let repo = sysroot.repo().expect("repo");
let repo = sysroot.repo();

let csum = booted.csum().expect("booted csum");
let csum = booted.csum();
let csum = csum.as_str();

let (root, rev) = repo.read_commit(csum, cancellable.as_ref())?;
Expand Down
Loading