Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcolombo committed Sep 27, 2023
1 parent 16adecb commit 3510855
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions phd-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ guest_os = "alpine"
# Remote artifacts are required to specify an expected SHA256 digest as a
# string.
[artifacts.alpine.source.remote_server]
sha256 = "alpine_digest"
sha256 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

# The following entry specifies a debug bootrom pulled from Buildomat. Buildomat
# outputs are associated with a single repo and a commit therein; the jobs that
Expand All @@ -118,7 +118,7 @@ kind = "bootrom"
repo = "oxidecomputer/edk2"
series = "image_debug"
commit = "commit_sha"
sha256 = "expected_ovmf_digest"
sha256 = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"

# This entry specifies a local directory in which an artifact can be found.
# SHA256 digests are optional for local artifacts. This allows you to create
Expand All @@ -130,7 +130,7 @@ kind = "propolis_server"

[artifacts.propolis.source.local_path]
path = "/home/oxide/propolis/target/debug"
# sha256 = "digest, if you want it"
# sha256 = "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
```

## Authoring tests
Expand Down
6 changes: 4 additions & 2 deletions phd-tests/framework/src/artifacts/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use crate::guest_os::GuestOsKind;
use crate::{
artifacts::{manifest::Manifest, ArtifactSource},
guest_os::GuestOsKind,
};

use super::{manifest::Manifest, ArtifactSource};
use anyhow::bail;
use camino::{Utf8Path, Utf8PathBuf};
use ring::digest::{Digest, SHA256};
Expand Down

0 comments on commit 3510855

Please sign in to comment.