Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
Prev Previous commit
Next Next commit
don't fail on cancelled task
  • Loading branch information
chkeita committed Oct 19, 2023
commit 787de6de442a1b179d8aeee5b542f9395b657cc5
5 changes: 4 additions & 1 deletion src/integration-tests/integration-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

import requests
import yaml
from onefuzztypes.enums import OS, ContainerType, ScalesetState, TaskState, VmState
from onefuzztypes.enums import OS, ContainerType, ErrorCode, ScalesetState, TaskState, VmState
from onefuzztypes.models import Job, Pool, Repro, Scaleset, Task
from onefuzztypes.primitives import Container, Directory, File, PoolName, Region
from pydantic import BaseModel, Field
Expand Down Expand Up @@ -787,6 +787,9 @@ def check_task(

# check if the task itself has an error
if task.error is not None:
if task.error == ErrorCode.TASK_CANCELLED:
return TaskTestState.stopped

self.logger.error(
"task failed: %s - %s (%s) - %s",
job.config.name,
Expand Down