diff --git a/moz-webgpu-cts/src/main.rs b/moz-webgpu-cts/src/main.rs index de5a07f..e885c62 100644 --- a/moz-webgpu-cts/src/main.rs +++ b/moz-webgpu-cts/src/main.rs @@ -295,12 +295,22 @@ enum OnZeroItem { enum UpdateBacklogDirection { /// Allows promotions from `backlog` to `implementing`. Promote, + Demote, + Sync, } impl UpdateBacklogDirection { pub fn can_promote(self) -> bool { match self { - Self::Promote => true, + Self::Promote | Self::Sync => true, + Self::Demote => false, + } + } + + pub fn can_demote(self) -> bool { + match self { + Self::Demote | Self::Sync => true, + Self::Promote => false, } } } @@ -1083,6 +1093,9 @@ fn run(cli: Cli) -> ExitCode { Case::PermaPass if direction.can_promote() => { Some(ImplementationStatus::Implementing) } + Case::Other if direction.can_demote() => { + Some(ImplementationStatus::Backlog) + } _ => None, } }