Skip to content

Commit

Permalink
Modifying tests and Cargo ostree
Browse files Browse the repository at this point in the history
  • Loading branch information
RishabhSaini committed Feb 15, 2023
1 parent 9450650 commit 353a7da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ openssl = "0.10.45"
once_cell = "1.16.0"
oci-spec = "0.5"
os-release = "0.1.0"
ostree-ext = "0.10.0"
ostree-ext = { path = "../ostree-rs-ext/lib"}
paste = "1.0"
phf = { version = "0.11", features = ["macros"] }
rand = "0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion tests/encapsulate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -xeuo pipefail
# Pull the latest FCOS build, unpack its container image, and verify
# that we can re-encapsulate it as chunked.

ver=37.20230126.20.0
ver=37.20221111.20.0
container=quay.io/fedora/fedora-coreos:${ver}

tmpdir=/tmp/coreTest-${ver}
Expand Down
7 changes: 3 additions & 4 deletions tests/encapsulate_derived.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set -xeuo pipefail
# Pull the latest FCOS build, unpack its container image, and verify
# that we can re-encapsulate it as chunked.

ver=37.20230127.20.0
packaging_ver=37.20230126.20.0
compare_ver=37.20221117.20.0
ver=37.20230201.20.0
packaging_ver=37.20221111.20.0
compare_ver=37.20230131.20.0
container=quay.io/fedora/fedora-coreos:${ver}

tmpdir=/tmp/coreTest-${ver}
Expand All @@ -26,5 +26,4 @@ runtime=$( echo "$end - $start" | bc -l )
skopeo inspect oci:${tmpdir}/test.oci | jq '.LayersData | .[0].Annotations.Content' > annotation_ostree.txt
grep -qFe ostree_commit annotation_ostree.txt
skopeo inspect --config oci:${tmpdir}/test.oci | jq '.rootfs.diff_ids' > layersDiffids.txt
diff ${tmpdir}/layersDiffids.txt ${p_tmpdir}/layersDiffids.txt
echo ok

0 comments on commit 353a7da

Please sign in to comment.