Fix `is_tdx_enabled` in OSDK tests
This commit is contained in:
parent
d809a26a2f
commit
4231645c02
|
|
@ -146,7 +146,7 @@ pub(crate) fn add_tdx_scheme(osdk_path: impl AsRef<Path>) -> std::io::Result<()>
|
|||
}
|
||||
|
||||
pub(crate) fn is_tdx_enabled() -> bool {
|
||||
std::env::var("INTEL_TDX").is_ok()
|
||||
std::env::var("INTEL_TDX").is_ok_and(|s| s == "1")
|
||||
}
|
||||
|
||||
fn conditionally_add_tdx_args<T: AsRef<OsStr>, I: IntoIterator<Item = T> + Copy>(
|
||||
|
|
|
|||
Loading…
Reference in New Issue