Skip to content

Commit

Permalink
Force linux/amd64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jssblck committed Jun 5, 2024
1 parent 7fb4581 commit e65787b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/it/jar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ fn jars_in_container(container: &str) -> Vec<DiscoveredJar> {
// but since this is only for testing I think it's easier to interact via the shell.
let sh = xshell::Shell::new().expect("create shell");

// Force the `linux/amd64` platform when pulling, since that's what CI runs in.
// This way local tests work even on M-series macOS, and CI works even though it's linux.
debug!("pulling container");
xshell::cmd!(sh, "docker pull {container}")
xshell::cmd!(sh, "docker pull --platform linux/amd64 {container}")
.quiet()
.run()
.expect("pull container");
Expand Down
4 changes: 2 additions & 2 deletions tests/it/jar/expect/hazelcast_managementcenter_5_3_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ pub fn list() -> Vec<DiscoveredJar> {
},
),
DiscoveredJar::new(
"usr/lib/jvm/java-17-openjdk-17.0.7.0.7-3.el8.aarch64/lib/jrt-fs.jar",
"usr/lib/jvm/java-17-openjdk-17.0.7.0.7-3.el8.x86_64/lib/jrt-fs.jar",
combined! {
Kind::JarClassV1 => "1b9d4816dad40a7922d991be24f0f1bc4bffaf271ab45b9ba32f123a932dd807",
Kind::JarRawV1 => "3788fc905d4f2aaf615252c8fcbfc1ec8fdc25b4538f194603b79d9d571ab7d4",
Kind::RawSha256 => "2da0df083e22006770f4c2c19a6212ec266ea29a7901fd1bef5dc2c01eec7394",
Kind::RawSha256 => "f05c638cc96a6e119aef7044764c189a089ed9abfbd765efe33774bc94afa0d5",
},
),
]
Expand Down

0 comments on commit e65787b

Please sign in to comment.