diff --git a/coordinator/Model/TestSuite.cs b/coordinator/Model/TestSuite.cs index 2f4cd9f0..171ca899 100644 --- a/coordinator/Model/TestSuite.cs +++ b/coordinator/Model/TestSuite.cs @@ -155,7 +155,7 @@ public enum TestResultKind { TimeLimitExceeded = 4, MemoryLimitExceeded = 5, ShouldFail = 6, - NotRan = -1, + NotRun = -1, Waiting = -2, Running = -3, OtherError = -100, diff --git a/docs/manual/results.md b/docs/manual/results.md index cbf0a7e2..ee126b2b 100644 --- a/docs/manual/results.md +++ b/docs/manual/results.md @@ -34,5 +34,5 @@ | PF | PipelineFailed | 运行时有某一步输出不为 0 | | TLE | TimeLimitExceeded | 超时了 | | MLE | MemoryLimitExceeded | 占用内存过大 | -| NR | NotRan | 没有运行 | +| NR | NotRun | 没有运行 | | OE | OtherError | 出现了其他错误(通常是评测机的问题) | diff --git a/judger/src/client/model.rs b/judger/src/client/model.rs index a0cfe4d9..faefb816 100644 --- a/judger/src/client/model.rs +++ b/judger/src/client/model.rs @@ -100,7 +100,7 @@ pub enum TestResultKind { TimeLimitExceeded = 4, MemoryLimitExceeded = 5, ShouldFail = 6, - NotRan = -1, + NotRun = -1, Waiting = -2, Running = -3, OtherError = -100, @@ -203,7 +203,7 @@ pub async fn transform_and_upload_test_result( Some("The tested program should return a non-zero number at some point".into()), None, ), - JobFailure::Cancelled => (TestResultKind::NotRan, None, None), + JobFailure::Cancelled => (TestResultKind::NotRun, None, None), }, }; diff --git a/web/src/components/item-components/job-test-item/job-test-item.component.ts b/web/src/components/item-components/job-test-item/job-test-item.component.ts index 62d53c9d..0d092a6f 100644 --- a/web/src/components/item-components/job-test-item/job-test-item.component.ts +++ b/web/src/components/item-components/job-test-item/job-test-item.component.ts @@ -26,7 +26,7 @@ export class JobTestItemComponent implements OnInit { return 'AC'; case 'MemoryLimitExceeded': return 'MLE'; - case 'NotRan': + case 'NotRun': return 'NR'; case 'OtherError': return 'OE'; diff --git a/web/src/models/job-items.ts b/web/src/models/job-items.ts index ebe869eb..f8b2dbc7 100644 --- a/web/src/models/job-items.ts +++ b/web/src/models/job-items.ts @@ -13,7 +13,7 @@ export function dashboardTypeToSlider(item: TestResultKind): SliderItemKind { return 'error'; case 'MemoryLimitExceeded': return 'warn'; - case 'NotRan': + case 'NotRun': return 'cancel'; case 'OtherError': return 'info-alt'; @@ -104,7 +104,7 @@ export type TestResultKind = | 'TimeLimitExceeded' | 'MemoryLimitExceeded' | 'ShouldFail' - | 'NotRan' + | 'NotRun' | 'Waiting' | 'Running' | 'OtherError';