Skip to content

Commit 1443fd3

Browse files
committed
Format
1 parent 4051e2a commit 1443fd3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/src/native.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ impl NativeTest {
6262

6363
let env_value = if metal_validation { "1" } else { "0" };
6464
std::env::set_var("MTL_DEBUG_LAYER", env_value);
65-
if std::env::var("GITHUB_ACTIONS").as_deref() != Ok("true") && !config.params.disable_mtl_shader_validation {
65+
if std::env::var("GITHUB_ACTIONS").as_deref() != Ok("true")
66+
&& !config.params.disable_mtl_shader_validation
67+
{
6668
// Metal Shader Validation is entirely broken in the paravirtualized CI environment.
6769
std::env::set_var("MTL_SHADER_VALIDATION", env_value);
6870
} else if config.params.disable_mtl_shader_validation {

tests/src/params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl TestParameters {
113113
}
114114

115115
/// Disable metal shader validation.
116-
///
116+
///
117117
/// Metal shader validation can cause features (ray tracing specifically)
118118
/// to break. This disables it so it can be tested.
119119
pub fn disable_mtl_shader_validation(mut self) -> Self {

0 commit comments

Comments
 (0)